Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
covariant19.C
blob: 22c2b0eb6f629f48e9852d0910a2a2cec01de02a [
file
] [
log
] [
blame
]
// PR c++/46220
// According to the letter of the standard this is invalid,
// but that seems like a bug.
class
Baz
;
class
Foo
{
public
:
virtual
const
Baz
*
getBaz
()
=
0
;
};
class
Bar
:
public
Foo
{
public
:
Baz
*
getBaz
();
};