[Bug c++/2288] Variable declared in for-loop-header is in wrong scope

bergner at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 23 16:11:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2288

--- Comment #19 from Peter Bergner <bergner at gcc dot gnu.org> 2011-05-23 15:38:11 UTC ---
I applied Janis' patch (modulo a small fixup due to upstream changes) to
current mainline and did a bootstrap and regtest.  We bootstrap fine,
unfortunately the patch no longer fixes the new added test case
(g++.dg/parse/pr18770.C) and the modified test case
(g++.old-deja/g++.jason/cond.C) also fails.  I'm not really a C++ expert, so
I'm not sure what to do here.



More information about the Gcc-bugs mailing list