https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78923
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|bad error message about |[C++98/11/14] bad error
|missing template argument |message about missing
| |template argument
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C++17 and C++20 modes give a decent error message:
<source>:11:9: error: class template placeholder 'A' not permitted in this
context
11 | B<T>::B(A*) { // <-- should be: B<T>::B(A<T>*) {
| ^
C++98, 11, and 14 still give the bad one:
<source>:11:8: error: expected constructor, destructor, or type conversion
before '(' token
I don't know how useful this is as GCC 11+ default to C++17.