Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr85437-2.C

raw
1 // PR c++/85437
2 // { dg-do compile { target c++11 } }
3
4 struct A { };
5 struct B : A { int x; };
6
7 constexpr int A::*abx
8 = reinterpret_cast<int(A::*)>(&B::x); // { dg-error "reinterpret.*constant" }