Re: Why does gcc allow implicit conversion from const T* to T* (in C)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux