Debian Codegraph @

gcc/testsuite/g++.dg/ipa/pr93203.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -w -std=gnu++11" } */
3
4 class a {
5 public:
6 a(char *);
7 };
8 class ad {
9 public:
10 ad(a *);
11 };
12 class b {};
13 using ah = class ak {
14 using al = char;
15
16 public:
17 ak(b) : ak(0) {}
18 ak an() { return ap & 1; }
19 al ap;
20 ak(al af) : ap(af) {}
21 };
22 struct at {
23 ah au;
24 int av;
25 char aw;
26 char ax;
27 };
28 class az {
29 public:
30 struct ba {
31 void bb(ak am) {
32 ak bc = am.an();
33 bb(bc);
34 }
35 };
36 void bd(ak am) { be.bb(am); }
37 ba be;
38 };
39 class bg {
40 public:
41 int bh;
42 at bi;
43 };
44 int bj;
45 int *bk;
46 int c;
47 class bl {
48 bool bm();
49 bg bn;
50 az bo;
51 int e;
52 int bq;
53 };
54 class bs {
55 public:
56 bs(int *, ah *, char *, char *, int);
57 };
58 template < typename bt > class bu : bs {
59 using bv = typename bt::bv;
60
61 public:
62 template < typename... bx >
63 bu(a *by, int *bz, at body, bx...)
64 : bs(bz, &body.au, &body.aw, &body.ax, body.av), ca(bx()...), cb(by),
65 cc(by), cd(by), ce(by) {}
66 void cf() {
67 auto cg = ch();
68 auto ci = *cj();
69 ca.ck(this, cg, &ci);
70 }
71 bt ca;
72 ad cb;
73 ad cc;
74 ad cd;
75 ad ce;
76 bv *cj();
77 bv ch();
78 };
79 class cl {
80 public:
81 using bv = struct {};
82 cl(az *, int, int, int, int, a *, int, int **);
83 void ck(bs *, bv, bv *) {
84 b d;
85 ak ci(d);
86 bo.bd(ci);
87 }
88 az bo;
89 };
90 bool bl::bm() {
91 a by("");
92 bu< cl > cn(&by, &bj, bn.bi, &bo, c, bn.bh, e, 0, &by, bq, &bk);
93 cn.cf();
94 }
95