Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr87974.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-O3" }
3
4 struct h {
5 typedef int &c;
6 };
7 class i {
8 struct j {
9 using c = int *;
10 };
11 public:
12 using as = j::c;
13 };
14 template <typename> class k {
15 public:
16 using as = i::as;
17 h::c operator[](long l) {
18 k<int[]>::as d = 0;
19 return d[l];
20 }
21 };
22 class : public k<int[]> { } a;
23 long c, f;
24 void m()
25 {
26 for (long b; b <= 6; b++)
27 for (long g; g < b; g++) {
28 unsigned long e = g;
29 c = 0;
30 for (; c < b; c++)
31 f = e >>= 1;
32 a[g] = f;
33 }
34 }