https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71273
Bug ID: 71273 Summary: [6/7 Regression] not declared method in a namespace Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Hello. GCC 6 and current trunk does not compile following snippet: namespace Playlists { class Playlist; } namespace Playlist { class ModelStack { public: static ModelStack instance; }; } using namespace Playlists; void fn1() { ::Playlist::ModelStack::instance; } $ ~/bin/gcc-6/bin/g++ /tmp/tc.cc /tmp/tc.cc: In function ‘void fn1()’: /tmp/tc.cc:11:26: error: ‘Playlists::Playlist::ModelStack’ has not been declared void fn1() { ::Playlist::ModelStack::instance; } While GCC 5 is OK and clang++ 3.7.0 also. Thanks, Martin