1 // PR c++/3331: just because 'this' is readonly and bars[0].b is readonly
2 // doesn't mean that the result of the member reference is readonly.
11 static const bar bars[];
15 this->*(bars[0].b) = 42; // { dg-bogus "read-only" "" }
19 const foo::bar foo::bars[] = { { &foo::a } };