This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: why are we not using const?
- From: Andreas Schwab <schwab at suse dot de>
- To: "Dave Korn" <dave dot korn at artimi dot com>
- Cc: "'Andrew Pinski'" <pinskia at physics dot uc dot edu>, "'Richard Guenther'" <richard dot guenther at gmail dot com>, "'Kaveh R. Ghazi'" <ghazi at caipclassic dot rutgers dot edu>, <gdr at integrable-solutions dot net>, <gcc at gnu dot org>, <lopezibanez at gmail dot com>
- Date: Thu, 29 Jun 2006 16:12:15 +0200
- Subject: Re: why are we not using const?
- References: <015301c69b85$435d6e30$a501a8c0@CAM.ARTIMI.COM>
"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.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."