re PR c++/53856 (Default argument allowed on member defined outside of class template)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 5 Oct 2015 21:43:26 +0000 (21:43 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 5 Oct 2015 21:43:26 +0000 (21:43 +0000)
commitfcbc0f7cf76a9ee075003fe38ae900bf4842becc
tree16a91a2a7953eecb0f4924ad7e801db88fb7a105
parent1970d849159797e67aa80ef03cd0814a42338fda
re PR c++/53856 (Default argument allowed on member defined outside of class template)

/cp
2015-10-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53856
* pt.c (check_default_tmpl_args): Per [temp.param]/9, do not
reject default template arguments in out of class definitions
of members of non-template classes.

/testsuite
2015-10-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53856
* g++.dg/template/defarg19.C: New.
* g++.dg/template/defarg20.C: Likewise.

From-SVN: r228501
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/defarg19.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/defarg20.C [new file with mode: 0644]