repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wtemplate-id-cdtor-1.C
blob
429490708bca0430febe12c7f3a5e6dc6c54d392
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
};