PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr85437-4.C
blobe69607de51a9b7841c7f28f02a5a67a6c70f366c
1 // PR c++/85437
2 // { dg-do compile { target c++11 } }
4 struct A { };
5 struct B { int x; };
6 struct C : A, B {};
7 constexpr int C::*pci = &B::x;
8 constexpr int A::*pai = static_cast<int A::*>(pci);     // { dg-bogus "not a constant expression" }