This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ header file problem - is this a bug?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]