Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/sfinae59.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 // PR c++/81359 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 template<typename _Tp, typename = decltype(_Tp())> | |
5 static int test(int); | |
6 | |
7 template<typename> | |
8 static void test(...); | |
9 | |
10 template <class T, class = decltype(test<T>(0))> | |
11 struct A { }; | |
12 | |
13 struct B | |
14 { | |
15 struct C { | |
16 int i = 0; | |
17 }; | |
18 A<C> a; | |
19 }; |