https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80794
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-05-17
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Does the C++ standard really say so? Because I can happily do
const_cast<int&>(S.i) = 1;
usually the middle-end has to be forgiving here (also consider 'mutable').