| 1 |
// PR c++/107126 |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-options "-Wc++20-compat" } |
| 4 |
|
| 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 |
}; |