Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
ptrmem7.C
blob: a94990e54b74f9bdffb5e42ba4ebf85ad543ba81 [
file
] [
log
] [
blame
]
// PR c++/22545
struct
A
{
int
member
;
A
()
:
member
(
13
)
{}
};
A a
;
struct
B
{
operator
A
*()
{
return
&
a
;
}
};
B b
;
int
A
::*
member_pntr
=
&
A
::
member
;
int
main
()
{
return
b
->*
member_pntr
;
}