1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// PR middle-end/65409 // Reported by Ignacy Gawedzki <bugs@qult.net> struct Foo { Foo() {} int a; int b; char c; }; Foo copy_foo(Foo); struct Bar : Foo { Bar(Foo t) : Foo(copy_foo(t)) {} }; Bar a = Foo();