http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55798
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-12-23 19:31:04 UTC --- A big note, C and C++ has different rules with respect of nameloop up with declarations in the for/if/switch statements.