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: gcc C - No Warning when downcasting


Hi Eljay,

>None.
Thanks. That solves lot of trouble for me.

>Implicit "downcasting" from int to short or char is part of C/C++.  So such
>code is completely legal and legit.

Agreed.
I was wondering why gcc does not warn about possible data loss when VC++ does. Would this not help as a defect prevention measure during our development?

>
>Unfortunately.
>
I Agree.

Any design/implementation decisions which has trigerred making gcc not to generate a warning?

#Sar


_____________________________________________________________
Powered by a short email address ... http://www.k.st

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag


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