projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR c++/46220 (Error: invalid covariant return type generated for incomplete class...
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
covariant19.C
1
// PR c++/46220
2
// According to the letter of the standard this is invalid,
3
// but that seems like a bug.
4
5
class Baz;
6
class Foo {
7
public:
8
virtual const Baz* getBaz() = 0;
9
};
10
class Bar : public Foo {
11
public:
12
Baz* getBaz();
13
};
14