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: 11 Mar 2007 00:31:49 -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 #9 from manu at gcc dot gnu dot org 2007-03-11 00:31 -------
I tried setting TREE_OVERFLOW on a new node created from the zero of the
division by zero and then replacing the zero in 1/0 by this new node. It didn't
work, it seems that somehow the node that represents the result of 1/0 is built
in some way that ignores TREE_OVERFLOW.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19976