blob: 39fc4ebf5550887d31c6d256228c2e099da038fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/56059
// { dg-do compile { target c++11 } }
typedef int Int;
template<typename T> struct baz { };
template<typename T> T bar();
template<typename T, typename ... U>
baz<decltype(bar<Int>(bar<U>() ...))> // { dg-error "no match" }
foo();
int main()
{
foo<int, int>(); // { dg-error "no match" }
return 0;
}
|