Debian Codegraph @

gcc/testsuite/g++.dg/parse/crash68.C

raw
1 // PR c++/84611
2
3 template<typename = int>
4 struct a {
5 a() {
6 struct c;
7 try {
8 } catch (struct c {}) { // { dg-error "types may not be defined|conflicting" }
9 }
10 }
11 };
12
13 struct d {
14 d();
15 a<> b;
16 };
17
18 d::d() {}