Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wtemplate-id-cdtor-1.C
blob429490708bca0430febe12c7f3a5e6dc6c54d392
1 // PR c++/107126
2 // { dg-do compile }
3 // { dg-options "-Wc++20-compat" }
5 template<class T>
6 struct X {
7   X<T>(); // { dg-warning "template-id not allowed for constructor" }
8   ~X<T>(); // { dg-warning "template-id not allowed for destructor" }
9 };