[Bug c++/45113] absent or confusing diagnostics of invalid template argument list in implicit template class instantiation

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 14 19:40:00 GMT 2017


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Clang has a nice error for test3

45113_3.cc:2:15: error: type-id cannot have a name
typedef U<int x,int y> A;
              ^
45113_3.cc:2:21: error: type-id cannot have a name
typedef U<int x,int y> A;
                    ^
2 errors generated.


More information about the Gcc-bugs mailing list