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++/16191] New: Note for missing 'template' reports wrong template paramater


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


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