blob: 1deb964577d0ff735bcff3976e2a1752dbda8909 [file] [log] [blame]
// PR c++/50075
// { dg-do compile { target c++11 } }
// { dg-options "-ftemplate-depth=10" }
template <typename T>
auto make_array(const T& il) ->
decltype(make_array(il)) // { dg-error "not declared|no matching|depth" }
{ }
int main()
{
int z = make_array(1); // { dg-error "no matching" }
}
// { dg-prune-output "compilation terminated" }