// { dg-do compile } // Contributed by Bill Helfinstine // PR c++/14932: Allow subscript operator in offsetof #include struct A { int bar; int foo[22]; }; const int off = offsetof(A, foo[12]);