* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-nonlit2.C
blob2d712b64a52a768f05838cbc38de6db5b2549b3a
1 // { dg-do compile { target c++11 } }
3 struct A
5   ~A();
6 };
8 template<class T>
9 struct W {
10   T t;
11   template<class U>
12   constexpr W(U&& u) : t(u) {}
15 template <class T>
16 constexpr W<T> make_w(T& w) { return W<T>(w); }
18 A a;
19 constexpr auto w = make_w(a);   // { dg-error "" }