http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60994
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|RESOLVED |NEW Last reconfirmed| |2014-04-29 Resolution|INVALID |--- Ever confirmed|0 |1 --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Momchil Velikov from comment #0) > According to the C++11 Standard, [basic.lookup.qual] #1 > > "If a :: scope resolution operator in a nested-name-specifier is not > preceded by a decltype-specifier, lookup of the name preceding that :: > considers only namespaces, types, and templates whose specializations are > types." Confirmed. C++03 said "During the lookup for a name preceding the :: scope resolution operator, object, function, and enumerator names are ignored."