This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/150: div-by-0 warnings
- To: andrewm at uow dot edu dot au, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, martin at loewis dot home dot cs dot tu-berlin dot de, neil at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c/150: div-by-0 warnings
- From: neil at gcc dot gnu dot org
- Date: 26 Oct 2001 06:31:32 -0000
Synopsis: div-by-0 warnings
Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Thu Oct 25 23:31:32 2001
Responsible-Changed-Why:
Tis mine.
State-Changed-From-To: analyzed->closed
State-Changed-By: neil
State-Changed-When: Thu Oct 25 23:31:32 2001
State-Changed-Why:
Fixed in 3.1 for integer division by zero in C.
No warning is emitted for floating point div by zero, since
this can be used to get NaNs and infinities.
C++ has existing slightly worse semantics; I hope to bring
those in line with the C front end sometime.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=150&database=gcc