------- Comment #1 from redi at gcc dot gnu dot org 2009-12-08 20:21 ------- There's been an XFAIL about this in g++.old-deja/g++.jason/cond.C for ages, but it doesn't test the switch case.
Self-contained testcase: void f() { if (int foo = 0) int foo = 1; switch (int foo = 0) { default: int foo = 1; } } -- redi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |accepts-invalid Known to fail| |4.4.2 Last reconfirmed|0000-00-00 00:00:00 |2009-12-08 20:21:14 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31956