blob: bf418ba48c747bf0ba632a57930e592019aa2cb3 [file] [log] [blame]
// { dg-do assemble }
// Test for use of template parms in constructor name.
// Submitted by Jason Merrill <jason@cygnus.com>
template <class T>
struct A {
A<T>(); // { dg-error "expected" "" { target c++20 } }
};
template <class T>
A<T>::A<T>() // { dg-error "constructor|qualified name" }
{
}