Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
crash58.C
blob: 37f1c09d5a4910b12548903ff2fb3017874d637a [
file
] [
log
] [
blame
]
// PR c++/51223
struct
A
{
A foo
(
void
i
=
0
);
// { dg-error "incomplete type|invalid use" }
};
void
bar
()
{
A
().
foo
();
}
A A
::
foo
(
void
i
)
// { dg-error "incomplete type|invalid use" }
{
return
A
();
}