re PR c++/7841 (gcc accepts illegal member function syntax for template classes)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 8 Jun 2004 03:24:37 +0000 (03:24 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 8 Jun 2004 03:24:37 +0000 (03:24 +0000)
commit9221325f10a58e13a35dfac007c6b5c906760679
tree2573821d599685b6842e806bdb293c22d5a01b04
parentaa07e14d5d3d90dd7f5e0804a8626cd6d4ddbb0e
re PR c++/7841 (gcc accepts illegal member function syntax for template classes)

PR c++/7841
* parser.c (cp_parser_direct_declarator): Reject constructor named
as qualified template-id.

PR c++/7841
* g++.old-deja/g++.pt/ctor2.C: Add error mark.

From-SVN: r82741
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/ctor2.C