Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
();
}