blob: 7f5005b915cd0faadfd1e8726912d0ef7b96a121 [file] [log] [blame]
// 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 "" }
foo();
int main()
{
foo<int, int>(); // { dg-error "no match" }
return 0;
}