1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { dg-options "-O2 -Wuninitialized" } */ struct Empty { Empty() {} }; /* { dg-bogus "uninitialized" } */ struct Other { Other(const Empty& e_) : e(e_) {} Empty e; }; void bar(Other&); void foo() { Empty e; Other o(e); bar(o); }