summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/defarg1.C
blob: 44de733736f84cc4596ade89bcad20b1ba8f42a9 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/5247

template<typename T>
int foo (T t, int = foo(T()));

int main()
{
  foo(0);			// { dg-error "default argument" }
}