This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21413] diagnostic for instantiation should also reference the function which it is where the instantiation happens
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2006 20:39:41 -0000
- Subject: [Bug c++/21413] diagnostic for instantiation should also reference the function which it is where the instantiation happens
- References: <bug-21413-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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