------- 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