This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16191] New: Note for missing 'template' reports wrong template paramater
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2004 03:27:44 -0000
- Subject: [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
template <typename Q> struct A { template <typename> struct B {}; };
template <typename T> struct C : A<T>::B<T> {};
jeffmir.cc:2: error: non-template `B' used as template
jeffmir.cc:2: note: use `A<Q>::template B' to indicate that it is a template
The message could be improved by saying "A<T>::template B", or
even "A<T>::template B<T>".
--
Summary: Note for missing 'template' reports wrong template
paramater
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: giovannibajo at libero dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16191