------- Comment #7 from lmillward at gcc dot gnu dot org 2006-07-08 16:39 ------- Subject: Bug 27820
Author: lmillward Date: Sat Jul 8 16:39:20 2006 New Revision: 115283 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115283 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. PR c++/27820 * g++.dg/other/label1.C: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/label1.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/decl.c branches/gcc-4_1-branch/gcc/cp/semantics.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27820