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++/62315] New: do not print typename in diagnostic if the original code does not have it


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62315

            Bug ID: 62315
           Summary: do not print typename in diagnostic if the original
                    code does not have it
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manu at gcc dot gnu.org

/home/manuel/test2/src/gcc/testsuite/g++.dg/parse/typedef2.C:2:42: error: need
âtypenameâ before âtypename B<T>::X::Yâ because âtypename B<T>::Xâ is a
dependent scope
 template <typename T> struct A { typedef B<T>::X::Y Z; }; // { dg-error "" }
                                          ^

It is confusing to say that typename is needed before 'typename B<T>::X::Y'.

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