This is the mail archive of the gcc-help@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 does gcc allow implicit conversion from const T* to T* (in C)?


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.


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