1 // PR c++/68711 - [5 regression] SEGV on an invalid offsetof of a member
7 struct B: virtual A { };
10 !&((B*)0)->i, // { dg-error "invalid access to non-static data member" }
11 __builtin_offsetof (B, i) // { dg-error "invalid access to non-static" }
12 }; // { dg-error "offsetof within non-standard-layout type" "" { target *-*-* } .-1 }