[Bug c++/55798] suprious redeclaration error in for-loop
f.heckenbach@fh-soft.de
gcc-bugzilla@gcc.gnu.org
Sun Dec 23 20:12:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55798
--- Comment #4 from Frank Heckenbach <f.heckenbach@fh-soft.de> 2012-12-23 20:12:01 UTC ---
(In reply to comment #3)
> A big note, C and C++ has different rules with respect of nameloop up with
> declarations in the for/if/switch statements.
That's what got me. Sorry for the noise.
However, is there any deeper reason for that (such as the C rules conflicting
with some C++ feature) that I'm missing, or is it just a gratuitous
incompatiblity between C and C++?
More information about the Gcc-bugs
mailing list