Re: [Bug c++/37728] New: if scoping for declarations

2008-10-03 Thread Andrew Thomas Pinski
Sent from my iPhone On Oct 3, 2008, at 11:10 AM, "mrs at apple dot com" <[EMAIL PROTECTED] > wrote: In: http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-October/017449.html we were discussing possible bugs in g++ scoping for if statements. $ cat t.cc void foo() { if (int x = 0) { int

[Bug c++/37728] New: if scoping for declarations

2008-10-03 Thread mrs at apple dot com
In: http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-October/017449.html we were discussing possible bugs in g++ scoping for if statements. $ cat t.cc void foo() { if (int x = 0) { int x; } } $ ./xgcc -B./ -c t.cc $ they expected this to produce a redeclaration error on the inner decla