[Bug c++/50418] nested class typedef with same name and pointing to parent class typedef
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50418 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2011-09-15 12:17:48 UTC --- [basic.scope.class] A name N used in a class S shall refer to the same declaration in its context and when re-evaluated in the completed scope of S. No diagnostic is required for a violation of this rule. Which implies the program is ill-formed.
[Bug c++/50418] nested class typedef with same name and pointing to parent class typedef
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50418 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2011-09-15 12:29:38 UTC --- you can use -fpermissive to make G++ accept the code
[Bug c++/50418] nested class typedef with same name and pointing to parent class typedef
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50418 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID --- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org 2011-09-15 14:07:04 UTC --- Invalid as noted in comment #1 .