1 // PR c++/93905 2 // { dg-do compile { target c++11 } } 3 4 enum class E { VALUE }; 5 6 struct B { 7 E e{E::VALUE}; 8 protected: 9 ~B () = default; 10 }; 11 12 struct D : B {}; 13 14 int main()15 main () 16 { 17 D d{}; 18 } 19