[Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings

2016-07-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71853 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings

2016-07-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71853 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Fri Jul 29 17:34:55 2016 New Revision: 238884 URL: https://gcc.gnu.org/viewcvs?rev=238884=gcc=rev Log: PR c/71853 * c-parser.c (c_parser_switch_statement): Initialize

[Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings

2016-07-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71853 --- Comment #4 from Marek Polacek --- That's because we're using uninitialized struct c_expr in c_parser_switch_statement. I have a fix.

[Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings

2016-07-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71853 --- Comment #3 from Marek Polacek --- Funny, trying again now, I can reproduce it again: (gdb) r Starting program: /home/marek/x/trunk/gcc/cc1 -quiet q.c -Wall -W q.c: In function ‘f’: q.c:3:12: error: expected ‘:’ or ‘...’ before ‘{’ token

[Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings

2016-07-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71853 --- Comment #2 from Marek Polacek --- Hmm, I can't seem to reproduce anymore on my laptop, though I see no particular revision that could have fixed this issue.

[Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings

2016-07-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71853 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|