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
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
offset3.C
1
// PRMS Id: 5070 (bug 2)
2
// Build don't link:
3
4
struct A {
5
void f ();
6
};
7
8
struct Ptr {
9
A* operator->();
10
};
11
12
struct B {
13
Ptr p;
14
};
15
16
struct C: public B {
17
void g ();
18
};
19
20
void C::g() {
21
B::p->f(); // gets bogus error
22
}