re PR c++/15947 (Puzzling error message for wrong destructor declaration in template...
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 15 Jun 2004 00:24:47 +0000 (00:24 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 15 Jun 2004 00:24:47 +0000 (00:24 +0000)
commit4e0f4df508db6bccfdca88a2bcf26e03317d4c71
treeb2b1023b8774b9200182a37a1542321c5abc0145
parent6fb25ec080f0151af5d61ece4f4f2ca3af2d051c
re PR c++/15947 (Puzzling error message for wrong destructor declaration in template class)

PR c++/15947
* parser.c (cp_parser_template_name): Ctors/dtors never need a
template keyword to disambiguate.

PR c++/15947
* g++.dg/parse/dtor4.C: New test.

From-SVN: r83154
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/dtor4.C [new file with mode: 0644]