comparison gcc/testsuite/g++.dg/template/sfinae31.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
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;