[Bug c++/16191] New: Note for missing 'template' reports wrong template paramater

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Fri Jun 25 04:06:00 GMT 2004


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



More information about the Gcc-bugs mailing list