This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]