isnan() with gcc 3.2.2 on FreeBSD 5.0-C

From: Ying-Chieh Liao <ijliao_at_FreeBSD.org>
Date: Mon, 31 Mar 2003 14:46:05 +0800
the following code snippet works fine with gcc 2.95.4 on RELENG_4
but failed on my -current

<code>
#include <iostream>
#include <cmath>

using namespace std;

int main(void)
{
    cout << isnan(1.0) << endl;
    return 0;
}
</code>

<err>
test.cpp: In function `int main()':
test.cpp:8: `isnan' undeclared (first use this function)
test.cpp:8: (Each undeclared identifier is reported only once for each function
   it appears in.)
</err>

what's wrong with my system ? or what can I do for it ?
-- 
int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
					-- IOCCC 1984

Received on Sun Mar 30 2003 - 20:49:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:02 UTC