[Bug c++/21413] diagnostic for instantiation should also reference the function which it is where the instantiation happens

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Oct 21 20:39:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list