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
/
covariant16.C
blob
de9307e89315664771d4f78a661b6a9115f7e49b
1
/* PR c++/28253 This used to ICE. */
2
/* { dg-do compile } */
3
4
struct A
5
{
6
virtual A* foo();
7
};
8
9
struct B : virtual A
10
{
11
virtual B* foo(); /* { dg-error "overriding" } */
12
};
13
14
struct C : B
15
{
16
virtual C& foo(); /* { dg-error "conflicting return type" } */
17
};