[Bug c++/27820] New: [4.0/4.1/4.2 regression] ICE with duplicate label

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 30 12:27:00 GMT 2006


The following invalid code snippet causes an ICE since GCC 4.0.0:

=======================
void foo()
{
    L: L: ;
}
=======================

bug.cc: In function 'void foo()':
bug.cc:3: error: duplicate label 'L'
bug.cc:3: internal compiler error: in record_in_finally_tree, at tree-eh.c:211
Please submit a full bug report, [etc.]

Only the C++ frontend is affected.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with duplicate label
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27820



More information about the Gcc-bugs mailing list