This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc C - No Warning when downcasting
- From: Saravanan T S <saravanan at k dot st>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 9 Jun 2003 07:19:21 -0700 (PDT)
- Subject: Re: gcc C - No Warning when downcasting
- Reply-to: saravanan at k dot st
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