This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27820] [4.0/4.1/4.2 regression] ICE with duplicate label
- From: "lmillward 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 Jul 2006 17:57:34 -0000
- Subject: [Bug c++/27820] [4.0/4.1/4.2 regression] ICE with duplicate label
- References: <bug-27820-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from lmillward at gcc dot gnu dot org 2006-07-07 17:57 -------
Subject: Bug 27820
Author: lmillward
Date: Fri Jul 7 17:57:12 2006
New Revision: 115265
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115265
Log:
PR c++/27820
* decl.c (define_label): Return error_mark_node on error.
* semantics.c (finish_label_stmt): Don't call
add_stmt for invalid labels.
* g++.dg/other/label1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/label1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27820