------- Comment #6 from pinskia at gcc dot gnu dot org 2006-10-21 20:39 ------- Comeau online has the same issue: "ComeauTest.c", line 3: error: name followed by "::" must be a class or namespace name... Wild guess: Did you #include the right header? typedef typename TT::value_type value_type; ^ detected during instantiation of class "a<TT> [with TT=float]" at line 11
See how it refers to a<float> and line 11 in the same way. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21413