comparison gcc/testsuite/g++.dg/parse/crash68.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
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() {}