This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] PATCH arith.c, another range checking problem
On Tue, May 18, 2004 at 01:12:16PM +0200, Tobias Schl?ter wrote:
> Steve Kargl wrote:
> >This range checking problem is probably a benign bug, but I
> >thought we should fix it away. The fix is obvious.
>
> I applied this as obvious.
>
> I'm wondering if this can ever trigger. Is there a combination of
> integer and real kinds where an integer can overflow a real? Or is there
> something else which could happen? Nevertheless, having the correct
> check in place seems more appropriate.
>
No, it cannot trigger based on our current INTEGER and REAL types
and kinds. This is why I called it a benign bug.
--
Steve