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
c++: constantness of call to function pointer [PR111703]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
covariant16.C
blob
e9cb769e2cf55a7ed9df03a2bc049f4309b5e9da
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-message "overridden" } */
12
};
13
14
struct C : B
15
{
16
virtual C& foo(); /* { dg-error "conflicting return type" } */
17
};