Re: Bug#361883: FTBFS with GCC 4.2: tpow test fails
* Martin Michlmayr [Tue, Apr 11, 2006 at 10:44:00AM +0200]:
> * Laurent Fousse <laurent@komite.net> [2006-04-11 09:27]:
> > Thanks for your report. I've forwarded it upstream, and I'm currently
> > trying to reproduce it to see if it's package-specific. I assume you
> > are using the gcc-snapshot package for your testing ?
>
> Yes, sorry for forgetting to mention this.
>
> I used gcc-snapshot (20060325-1):
> Target: x86_64-linux-gnu
> gcc version 4.2.0 20060325 (experimental)
The attached C file demonstrate the bug.
4.0.3 passes.
4.2-snap-20060325 from gcc-snapshot package fails.
4.2-snap-20060408 from upstream tarball fails.
Laurent.
#include <stdio.h>
int main (void)
{
long int n;
long int expx;
n = -2;
expx = 1;
if (-expx < ((-2147483647L - 1L)) / (-n)) {
printf ("Test true, should be false\n");
return -1;
}
return 0;
}
Reply to: