[Bug c++/25439] [4.0/4.1/4.2 regression] "template<> int A<0>" accepted
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 27 06:50:00 GMT 2005
------- Comment #3 from mmitchel at gcc dot gnu dot org 2005-12-27 06:50 -------
Subject: Bug 25439
Author: mmitchel
Date: Tue Dec 27 06:50:10 2005
New Revision: 109077
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109077
Log:
PR c++/25439
* decl.c (grokdeclarator): Remove dead code.
* ptree.c (cxx_print_xnode): Handle BASELINK.
* parser.c (make_id_declarator): Add sfk parameter.
(cp_parser_direct_declarator): Do not pass TYPE_DECLs to
make_id_declarator.
(cp_parser_declarator_id): Simplify BASELINKs here.
(cp_parser_member_declaration): Adjust calls to
make_id_declarator.
PR c++/25439
* g++.dg/parse/crash17.C: Adjust error markers.
* g++.dg/template/error20.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/error20.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/cp/ptree.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/crash17.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25439
More information about the Gcc-bugs
mailing list