This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19976] integer division by zero in subexpression should be overflow
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2006 21:02:15 -0000
- Subject: [Bug c/19976] integer division by zero in subexpression should be overflow
- References: <bug-19976-230@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from manu at gcc dot gnu dot org 2006-12-03 21:02 -------
(In reply to comment #3)
> Hi Manual,
Manuel (or Manu) http://en.wikipedia.org/wiki/Manuel
not manual: http://en.wikipedia.org/wiki/Manual
:-)
> The real issue is that OPT_Wdiv_by_zero needs to be enabled by -pedantic
> in order to generate an error for -pedantic-errors, as requested by
> Joseph in comment #1.
So, we just have to replace warning by pedwarn, don't we?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19976