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 29 June 2006 15:12, Andreas Schwab wrote:

> "Dave Korn" <dave.korn@artimi.com> writes:
> 
>> But it's really legal to cast away const?
> 
> All that matters is the effective type of the accessed object, see 6.5#7.
> 
> Andreas.


  Ah yes, now I remember... we had a long thread on this sometime last year,
didn't we, and decided that the compiler was in the right to ignore the
qualifiers on the pointer if it also knew that the pointer had been
initialised to point to an object for which it could see the declaration and
therefore know the real underlying type.  Thanks for the pointer.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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