Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
}