* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae27.C
blobddd484a474ef77fd989914490e667df592f7c1c0
1 // PR c++/50157
2 // { dg-do compile { target c++11 } }
4 template<class T>
5 T val();
7 template<class T, class Arg, class =
8   decltype(::new T(val<Arg>()))
10 auto test(int) -> char;
12 template<class, class>
13 auto test(...) -> char (&)[2];
15 struct P {
16   explicit operator bool(); // (#13)
19 typedef decltype(test<bool, P>(0)) type; // OK
20 typedef decltype(test<float, P>(0)) type2; // Error (#17)