blob: 5d05d3d52bd90cb58df0d935a1f3eab7d68a61fd [file] [log] [blame]
// 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;
}