// A constructor that might or might not be constexpr still makes // its class literal. // { dg-do compile { target c++11 } } template struct B { constexpr B(T) { } constexpr B() {} }; struct A { B b; }; constexpr A a {}; template struct C { constexpr C(T) { } C() {} }; struct D { C c; }; constexpr D d {}; // { dg-error "non-constexpr function" }