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 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: 7 Dec 2006 18:08:53 -0000
- Subject: [Bug c++/29730] [4.0/4.1/4.2 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 #5 from mmitchel at gcc dot gnu dot org 2006-12-07 18:08 -------
Subject: Bug 29730
Author: mmitchel
Date: Thu Dec 7 18:08:42 2006
New Revision: 119632
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119632
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:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/crash64.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/parser.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/parse/crash27.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29730