-Wcast-qual and casting away
Joseph S. Myers
joseph@codesourcery.com
Thu May 21 12:38:00 GMT 2009
On Wed, 20 May 2009, Ian Lance Taylor wrote:
> All that aside, I can't think of any reason that the C and C++ frontends
> should be different in this regard. Does anybody want to make an
There's the fairly obvious reason that C and C++ have different rules on
implicit conversions involving const, so const at higher levels of
indirection is irrelevant in C in a way that it is not in C++. (Adoption
of the C++ rules was considered and rejected for C99.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc
mailing list