This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15437] int vs const int computation: different answers
- From: "lani at oas dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2004 17:30:07 -0000
- Subject: [Bug c/15437] int vs const int computation: different answers
- References: <20040514162247.15437.lani@oas.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From lani at oas dot ca 2004-05-14 17:30 -------
Subject: Re: int vs const int computation: different answers
Okay. Well it may or may not be intended, but if one gives a different answer
than the other, which is totally unexpected as far as I'm concerned, then it's
still a bug. This should not happen. Our company is doing computations where
this kind of thing really matters. However, we have somewhat of a workaround to
use, so I won't pursue the issue any further.
Thanks for responding so promptly though.
Lani
pinskia at gcc dot gnu dot org writes :
>
>
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-14 16:54 -------
> Not a bug, the difference comes from constant prorogation (which is used for the const int case) and on
> x86 the precission is higher than the normal causing some round off errors to happen, see PR 323 for
> more information.
>
> *** This bug has been marked as a duplicate of 323 ***
>
> --
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |RESOLVED
> Resolution| |DUPLICATE
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15437
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15437