Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/ptrmem-cst1.C

raw
1 // PR c++/107574
2 // { dg-do compile { target c++11 } }
3
4 struct A { int i; };
5 struct B:A { int j; };
6 struct C:B {
7 int k;
8 static_assert((int B::*) &C::k, ""); // { dg-error "non-constant|still incomplete" }
9 };
10
11 static_assert((int B::*) &C::k, "");