This is the mail archive of the gcc-patches@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: C++ PATCH: Consolidate division by zero warnings


On Saturday, 15. April 2006 05:36, Mark Mitchell wrote:

>   static const int i = int (0.0 / 0.0);

Ok. This is not specific to C++, is it? Because in any case this doesn't work 
in the C frontend either. 

however, cases like

  int i = __builtin_nanf("");

do produce a "overflow in implicit constant conversion" diagnostic. I guess a 
bit more is missing for that. 


Dirk


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