// { dg-options -std=c++0x } struct A { ~A(); }; template struct W { T t; template constexpr W(U&& u) : t(u) {} }; template constexpr W make_w(T& w) { return W(w); } A a; constexpr auto w = make_w(a); // { dg-error "" }