Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }