This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29730] [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2006 22:55:09 -0000
- Subject: [Bug c++/29730] [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member
- References: <bug-29730-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-12-06 22:55 -------
Subject: Bug 29730
Author: mmitchel
Date: Wed Dec 6 22:54:51 2006
New Revision: 119601
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119601
Log:
PR c++/29730
* parser.c (cp_parser_init_declarator): Reject initialization of
functions.
PR c++/29730
* g++.dg/template/crash64.C: New test.
* g++.dg/parse/crash27.C: Adjust error markers.
Added:
trunk/gcc/testsuite/g++.dg/template/crash64.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/parse/crash27.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29730