repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
error2.C
blob
7d5e2e5d689fe940d4e4dc6e40d8b2005344d295
1
// PR c++/28259
2
// { dg-do compile }
3
4
struct A
5
{
6
virtual A* foo(); // { dg-error "overriding" }
7
};
8
9
struct B : virtual A; // { dg-error "before" }
10
11
struct C : A
12
{
13
virtual B* foo(); // { dg-error "invalid covariant" }
14
};
15
16
B* C::foo() { return 0; }