assigning to const int via pointer

Joe Steeve joe_steeve@gmx.net
Fri Dec 31 21:43:00 GMT 2004


Ian Lance Taylor <ian@airs.com> writes:
> ISO C99 6.7.3: "If an attempt is made to modify an object
> defined with a const-qualified type through use of an lvalue
> with non-const-qualified type, the behavior is undefined."

Thanks., that clarifies the confusion. :)

-- 
.O. A proud GNU user
..O http://www.joesteeve.tk/
OOO http://gnukid.5gigs.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20041231/d3c8fcf9/attachment-0001.sig>


More information about the Gcc-help mailing list