[Bug c/26005] Non-existent function/macro isinf() - correctly rejected by gcc - accepted by gcc -O
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 29 01:46:00 GMT 2006
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-01-29 01:46 -------
Well first when using optimization, GCC finds that 1.0 is finite.
Your test should look more like:
float f = 1.0;
int main ()
{
if(isinf(f))
return 1 ;
return 0;
}
But watch out for real optimizing (IPO based ones) compilers for this case.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26005
More information about the Gcc-bugs
mailing list