OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/28250
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
error2.C
1
// PR c++/28259
2
// { dg-do compile }
3
4
struct A
5
{
6
virtual A* foo();
7
};
8
9
struct B : virtual A; // { dg-error "before" }
10
11
struct C : A
12
{
13
virtual B* foo();
14
};
15
16
B* C::foo() { return 0; }