This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ header file problem - is this a bug?
- From: Bill Northcott <w dot northcott at unsw dot edu dot au>
- To: "Dave Korn" <dave dot korn at artimi dot com>
- Cc: "'Andrew Pinski'" <pinskia at physics dot uc dot edu>, <gcc at gcc dot gnu dot org>, "'JAGS'" <jags at iarc dot fr>
- Date: Wed, 5 Jan 2005 05:57:11 +1100
- Subject: Re: C++ header file problem - is this a bug?
- References: <NUTMEGVP9BOJQvtMFWG00000bfa@NUTMEG.CAM.ARTIMI.COM>
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