(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
pr85437-2.C
// 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" }