http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58091
Thomas Braun <thomas.br...@virtuell-zuhause.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thomas.braun@virtuell-zuhau | |se.de --- Comment #4 from Thomas Braun <thomas.br...@virtuell-zuhause.de> --- The example can be even more simplified: namespace NS { template < typename T > struct NS {}; } int main() { using namespace NS; NS<int> a; } And the same error message: test.cpp: In function ‘int main()’: test.cpp:11:3: error: reference to ‘NS’ is ambiguous test.cpp:3:1: error: candidates are: namespace NS { } test.cpp:5:10: error: template<class T> struct NS::NS test.cpp:11:6: error: expected primary-expression before ‘int’ test.cpp:11:6: error: expected ‘;’ before ‘int’ I tried g++ 4.4, 4.6 and 4.7.