[Bug c++/31956] names declared in a condition may be redeclared
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-12-08 20:24 --- *** This bug has been marked as a duplicate of 18770 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --
[Bug c++/31956] names declared in a condition may be redeclared
--- 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) { de