re PR c++/9127 (Confusing diagnostic on specialization not introduced by "template<>")
authorMark Mitchell <mark@codesourcery.com>
Thu, 4 Dec 2003 07:04:01 +0000 (07:04 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 4 Dec 2003 07:04:01 +0000 (07:04 +0000)
commitafb0918a9b127a64098a1267f328908acc7e4d1d
treee0f05bad020e9fd6c620b6e6dec6e478ffafd699
parentaedec8ddd22c81f7afec5423accb4175cad874b0
re PR c++/9127 (Confusing diagnostic on specialization not introduced by "template<>")

PR c++/9127
* cp-tree.h (at_namespace_scope_p): New function.
* parser.c (cp_parser_class_head): Handle invalid explicit
specializations.
* search.c (at_namespace_scope_p): New function.

PR c++/9127
* g++.dg/template/error6.C: New test.

From-SVN: r74274
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/error6.C [new file with mode: 0644]