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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2006 02:35:56 -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 #3 from pinskia at gcc dot gnu dot org 2006-06-02 02:35 -------
if (DECL_INITIAL (decl) != NULL_TREE)
error ("duplicate label %qD", decl);
else
Maybe adding into the if condition:
POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, error_mark_node);
This might work but I have not tested it at all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27820