[Bug c/63643] pointer to const variable doesn't allow to change its value (on Mac OS)
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 26 01:40:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63643
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The program is invalid. The C standard says "An assignment operator shall have
a modifiable lvalue as its left operand." An object with a const-qualified type
is not a modifiable lvalue.
More information about the Gcc-bugs
mailing list