public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/54355] New: ICE on invalid code in switch statement
@ 2012-08-23  9:48 jay.foad at gmail dot com
  2012-08-23 11:22 ` [Bug c/54355] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jay.foad at gmail dot com @ 2012-08-23  9:48 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: jay.foad@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/


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-17 20:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-23  9:48 [Bug c/54355] New: ICE on invalid code in switch statement jay.foad at gmail dot com
2012-08-23 11:22 ` [Bug c/54355] " jakub at gcc dot gnu.org
2012-08-23 11:24 ` jakub at gcc dot gnu.org
2012-08-23 11:57 ` jakub at gcc dot gnu.org
2012-08-24 21:45 ` jakub at gcc dot gnu.org
2013-03-22 14:43 ` jakub at gcc dot gnu.org
2013-05-31 10:58 ` jakub at gcc dot gnu.org
2013-10-16  9:51 ` jakub at gcc dot gnu.org
2013-10-17 20:17 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).