1 // PR c++/84611 2 3 template<typename = int> 4 struct a { aa5 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 d()18 d::d() {} 19