https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80794
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=90404, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=86318 --- Comment #9 from Martin Sebor <msebor at gcc dot gnu.org> --- See also pr86318 and especially pr90404. As noted in c#2 on the former, issuing a warning when an attempt is detected to modify a const object (or subobject) as requested in pr90404 should help detect changes, resulting from the optimization, to the behavior of code that deliberately violates the restriction to modify constant subobjects.