Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cast10.C
blob: cd3e0fc3c2719dbb8df0afb259abe8d4a05c8d2f [
file
] [
log
] [
blame
]
// { dg-do compile }
// This used to error out because we would try to convert m to a short.
struct
a
{};
void
b
()
{
int
a
::*
m
;
a
*
c
;
short
p
=
reinterpret_cast
<
char
*>(&(
c
->*
m
))
-
reinterpret_cast
<
char
*>(
c
);
}