| 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, ""); |