re PR c++/14409 (Accepts invalid function signature for explicit instantiation)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 9 Mar 2004 15:35:03 +0000 (15:35 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 9 Mar 2004 15:35:03 +0000 (15:35 +0000)
commit0da99d4e61c59953f97eade1f44c23205c7949f5
tree44c983fcb452077bd96647141c4db6421d164077
parentc0e63064edf05949af01937c7982eabf98211c8d
re PR c++/14409 (Accepts invalid function signature for explicit instantiation)

PR c++/14409
* pt.c (determine_specialization): For member templates, match also
constness.

PR c++/14448
* parser.c (cp_parser_initializer_clause): Fold initializer if it is
non-dependent.
* pt.c (tsubst_copy_and_build): Handle NOP_EXPRs.

PR c++/14409
* g++.dg/template/spec12.C: New test.

PR c++/14448
* g++.dg/parse/crash14.C: New test.

From-SVN: r79172
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash14.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/spec12.C [new file with mode: 0644]