]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/sfinae5.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae5.C
CommitLineData
4b2e63de 1// { dg-do compile { target c++11 } }
79fe346e
JM
2
3template<class T>
4T&& create();
5
6template <class T, class U,
7 class = decltype(create<T>() = create<U>())
8 >
9char test(int);
10
11template <class, class>
12double test(...);
13
14int main() {
15 test<int[], int[]>(0); // #1
16}
This page took 6.039462 seconds and 5 git commands to generate.