Why does gcc allow implicit conversion from const T* to T* (in C)?
Andrew Haley
aph@redhat.com
Tue May 5 15:02:00 GMT 2009
Sebastian Mach wrote:
> Now my questions are:
> 0) Is gcc just liberal?
> 0.yes) Why?
> 0.no) Which would be the relevant section of the standard?
One thing that you may have missed is that the standard doesn't say
anything about warnings or errors. When it says a translator must
issue a diagnostic, then that can be either a warning or an error.
Andrew.
More information about the Gcc-help
mailing list