* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae14.C
blob14e5e058a3bcfa1fcba9bebeff50ba614e0fc41c
1 // PR c++/48557
2 // { dg-do compile { target c++11 } }
4 template<class T>
5 struct add_rval_ref
7   typedef T&& type;
8 };
10 template<>
11 struct add_rval_ref<void>
13   typedef void type;
16 template<class T>
17 typename add_rval_ref<T>::type create();
19 template<class T, class U,
20   class = decltype(create<T>() + create<U>())
22 char f(int);
24 template<class, class>
25 char (&f(...))[2];
27 static_assert(sizeof(f<void, int>(0)) != 1, "Error");  // (a)