repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RTEMS: Add Cortex-M33 multilib
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr107985.C
blob
8d244b54efbd262d071005aab885edcf81c40726
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -ftree-vrp -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre" } */
3
4
struct B {
5
int f;
6
};
7
8
struct D : public B {
9
};
10
11
void foo() {
12
D d;
13
d.f = 7;
14
15
int B::* pfb = &B::f;
16
int D::* pfd = pfb;
17
int v = d.*pfd;
18
}