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

             Bug #: 54355
           Summary: ICE on invalid code in switch statement
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jay.f...@gmail.com


Created attachment 28067
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28067
test case

On the attached test case I get:


$ cc1 reduced.c
 f
reduced.c: In function 'f':
reduced.c:5:1: error: a label can only be part of a statement and a declaration
is not a statement
 a b >
 ^
reduced.c:5:1: error: unknown type name 'a'
reduced.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'>' token
 a b >
     ^
reduced.c:5:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


I'm using trunk revision 190616 on x86_64-unknown-linux-gnu.

Credit: test case was reduced by C-Reduce: http://embed.cs.utah.edu/creduce/

Reply via email to