1 // { dg-do compile { target c++11 } } 2 3 struct A 4 { 5 int i; AA6 explicit constexpr A(int i): i(i) {} 7 }; 8 9 struct B 10 { 11 A a1 = 1; // { dg-error "" } 12 A a2 { 2 }; 13 A a3 = { 3 }; // { dg-error "explicit" } 14 }; 15 16 constexpr B b; 17 18 // { dg-prune-output "B::B. is not usable" } 19 // { dg-prune-output "B::a1" } 20