1 2 3 4 5 6 7 8 9 10 11 12
// PR c++/77375 // { dg-do run { target c++11 } } struct Base { mutable int i; }; struct Derived : Base {}; const Derived foo{}; int main () { foo.i = 42; }