On the 3.4 branch I get a segfault for the following invalid code snippet:

=============================
void foo()
{
     __PRETTY_FUNCTION__;
=============================

bug.c: In function `foo':
bug.c:3: error: parse error at end of input
bug.c:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

Mainline and 4.0 barnch are not affected.

-- 
           Summary: [3.4 regression] ICE on missing brace
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to