This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: assigning to const int via pointer


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/

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]