Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
crash54.C
blob: 89d59ef2c165ba8d518e20bf509ed9570ed168ea [
file
] [
log
] [
blame
]
// PR c++/42057
struct
A
;
// { dg-message "forward declaration" }
struct
B
{
virtual
B
*
foo
(
A
);
};
struct
C
:
virtual
B
{
virtual
C
*
foo
(
A
)
{
return
0
;
}
// { dg-error "incomplete type" }
};
C c
;