]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/sfinae19.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae19.C
1 // PR c++/48737
2 // { dg-do compile { target c++11 } }
3
4 template<class T>
5 T&& create();
6
7 template<class T, class... Args>
8 decltype(T{create<Args>()...}, char()) f(int);
9
10 template<class, class...>
11 char (&f(...))[2];
12
13 static_assert(sizeof(f<int[1], int, int>(0)) != 1, "Error");
This page took 0.037737 seconds and 5 git commands to generate.