Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
overload
/
defarg1.C
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" }
}