1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// PR c++/98642 // { dg-do compile { target c++11 } } struct base { base(void) {} base(base &&) = delete; }; struct foo : public base { }; static foo c1 { }; #if __cpp_aggregate_bases static foo c2 { {} }; #endif