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: [PING^3] PR 21438 : Warning about division by zero depends on lexical form


On Thu, 1 Mar 2007, Manuel López-Ibáñez wrote:

> Still pending resolution:
> http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00925.html

I don't see what there is supposed to be here for me to resolve.  If the 
patch at <http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01166.html> is 
still awaiting approval rather than withdrawn or revised it is OK.

The int i = int(1.0/0.0); is a C++ matter, but is not a matter of a 
division-by-zero warning; rather a matter that we should warn for 
conversion of any constant infinity or NaN to an integer type, whether 
that infinity or NaN is obtained by division by zero or by using built-in 
functions.  This should go with other warnings for out-of-range 
floating-to-integer conversions.

-- 
Joseph S. Myers
joseph@codesourcery.com

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