This is the mail archive of the gcc@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: why are we not using const?



On Jun 29, 2006, at 9:51 AM, Dave Korn wrote:


That's cheating! You casted away const, it's a blatant aliasing violation,
you deserve everything you get.

No it is not, in fact it is legal C and there is no aliasing violation as you
are still accessing the memory as an "int".




-- Pinski


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