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