1 // { dg-require-effective-target c++11 } 2 3 struct A 4 { 5 protected: 6 A() = default; 7 int i; 8 }; 9 10 struct B: A { 11 B() = default; 12 }; 13 main()14 int main() 15 { 16 B(); 17 } 18