blob: 57ca00ab0429861fd8234f396c31e7694b4aff8a [file] [log] [blame]
// PR c++/19808
// { dg-do compile }
// { dg-options "-Wuninitialized" }
struct A {
int a;
int b;
A(int) {}
};
struct S {
A a;
A a2;
S() :
/* We don't warn here, because we consider partial initialization
as initializing the whole object. */
a((a2.a = 42)),
a2(a2.a)
{ }
};