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
/
thunk5.C
blob
05dba36383d896f42f88b825c44c978a0597cc6b
1
// PR c++/21123
2
3
struct A
4
{
5
A(const A &a);
6
const A& operator=(const A& a);
7
};
8
9
struct B
10
{
11
virtual A f(A);
12
};
13
14
struct C : virtual B
15
{
16
virtual A f(A);
17
};
18
19
A C::f(A a)
20
{
21
return a;
22
}