https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116160
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|4.8.0 | Target Milestone|--- |12.5 Known to work|4.7.1, 4.7.4 | --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Hmm, EDG rejects the first example: ``` "<source>", line 5: error: "b" has already been declared in the current scope using Blah::b; ^ ``` But accepts the second example. The first example was accepted before GCC 4.8.0 (that is 4.7.4 was accepting it but 4.8.0 rejects it); I am not sure this is valid code though.