https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110687
Bug ID: 110687 Summary: problem with class template Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: irip at qq dot com Target Milestone: --- Testcase as: namespace N { template <class P> struct S01 { template <int I> struct T {}; N::S01<P>::template T<1> m; }; } Compiler error: 'T<1>' in 'struct N::S01<P>' does not name a type The C++ standard allows you to declare a class template without adding typename when referring to a previously defined type