Debian Codegraph @

gcc/testsuite/g++.dg/template/crash117.C

raw
1 // PR c++/58649
2
3 template<typename> void foo()
4 {
5 E(); // { dg-error "declaration|declared" }
6 enum E {};
7 }
8
9 template void foo<int>();