blob: fcbb43b7bf274d4ccc2a76e66508d10a29b77ea8 [file] [log] [blame]
// PR c++/5247
template<typename T>
int foo (T t, int = foo(T())); // { dg-error "recursive" }
struct A { };
int main()
{
foo(A()); // { dg-message "default argument" }
}