1 2 3 4 5 6 7 8 9 10 11
// Origin PR c++/40239 // { dg-do compile } struct B { B() { } private: B(B const&); }; struct A { int a; B b; }; int main() { A a = {0}; }