1 // PR c++/81061 2 3 const int i = 0; 4 foo()5 void foo() 6 { 7 (0, i) = 1; // { dg-error "read-only" } 8 } 9