blob: e9a1a4f6189ffa196b2cf7d9b03c30c0f3e32b20 [file] [log] [blame]
// PR c++/69164
// { dg-do compile { target c++11 } }
// { dg-options "-O2" }
struct A {
struct B {
B () {}
bool : 1;
};
B foo () { B r; return r; }
};
struct C {
struct D {
D (C *x) : d (x->c.foo ()) {}
A::B d;
};
A c;
};
struct F : C {
D f = this;
F (int, int) {}
};
void
bar (int a, int b)
{
F (b, a);
}