Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/sfinae31.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 // PR c++/78446 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 struct A { void operator()(); }; | |
5 struct B { void operator()(); }; | |
6 struct C : A, B {}; | |
7 | |
8 template<class T> | |
9 decltype(T()()) foo(int); | |
10 | |
11 template<class> int foo(...); | |
12 | |
13 using type = decltype(foo<C>(0)); | |
14 using type = int; |