Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr85437-2.C
blob: a059e43b770fd3f7c24d4106fbd53038dfc65ebe [
file
] [
log
] [
blame
]
// PR c++/85437
// { dg-do compile { target c++11 } }
struct
A
{
};
struct
B
:
A
{
int
x
;
};
constexpr
int
A
::*
abx
=
reinterpret_cast
<
int
(
A
::*)>(&
B
::
x
);
// { dg-error "reinterpret.*constant" }