repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
expr
/
ptrmem7.C
blob
a94990e54b74f9bdffb5e42ba4ebf85ad543ba81
1
// PR c++/22545
2
3
struct A {
4
int member;
5
A() : member(13) {}
6
};
7
8
A a;
9
10
struct B {
11
operator A*() { return &a; }
12
};
13
14
B b;
15
16
int A::* member_pntr = &A::member;
17
18
int main()
19
{
20
return b ->* member_pntr;
21
}