Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/crash32.C

raw
1 // { dg-do assemble }
2 // Origin: Jakub Jelinek <[email protected]>
3
4 struct foo
5 {
6 enum e
7 {
8 not // { dg-error "" }
9 // We think the next close-brace closes the definition of struct
10 // foo, not enum e. Things go downhill from there
11 }; // { dg-bogus "" }
12 ~foo(); // { dg-bogus "" "" { xfail *-*-* } }
13 void x (foo *&a, bool b = (unsigned char)0);
14 }; // { dg-bogus "" "" { xfail *-*-* } }
15
16 namespace N
17 {
18 struct bar;
19
20 template<class T>
21 struct baz
22 {
23 baz(T *p);
24 };
25
26 typedef baz<bar> c;
27 }
28
29 { // { dg-error "expected" }
30 int a;
31 };