C++ header file problem - is this a bug?
Bill Northcott
w.northcott@unsw.edu.au
Tue Jan 4 19:02:00 GMT 2005
Sorry I don't get that. Where is the bug in the following code?
#include <iostream>
#include <math.h>
isnan(x);
isnan() is a macro defined in math.h, but it does not work in this
snippet. How do you suggest this code is 'fixed'??
As discussed in PR14608 the bug is in gcc. Various macros in math.h
don't work if cmath.h also gets included. It comes up with all sorts
of code on different platforms.
Bill Northcott
On 05/01/2005, at 1:29 AM, Dave Korn wrote:
>> -----Original Message-----
>> From: gcc-owner On Behalf Of Bill Northcott
>> Sent: 04 January 2005 11:48
>
>> Do I understand correctly that there is no intention to fix this?
> Given that the bug is in your code and not in gcc, it's really up to
> you.....
> cheers,
> DaveK
More information about the Gcc
mailing list