// A constructor that might or might not be constexpr still makes // its class literal. // { dg-options -std=c++0x } 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 "not a constexpr function" }