Debian Codegraph @

gcc/testsuite/g++.dg/template/pr84973-2.C

raw
1 // { dg-do compile }
2
3 template <int> void a() {
4 typedef struct {
5 void b() try { b; } catch (short) { // { dg-error "invalid use" }
6 }
7 } c;
8 }
9
10 int
11 main() {
12 a<0>();
13 }