This is the mail archive of the gcc-bugs@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]

[Bug libstdc++/14608] <iostream.h> nukes isfinite macro from <math.h>



------- Comment #9 from bkoz at gcc dot gnu dot org  2009-01-27 20:49 -------

Looks to me like the flipside of libstdc++/7439. More broadly speaking, C99
macros vs. C++98/0x. The current status on this issue is:

For 4.1/4.2/4.3/trunk, C99 macros should be visible with 
  1) -std=gnu99/c99 in "C" code (platform-specific if this is guarded: linux
is) 
  2) with _GLIBCXX_USE_C99_MATH defined for c++98/0x, macros are undefined and
templates scoped in namespace std:: are visible. The macro
_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC can be defined to suppress this, and define
the macros.

This seems like standards-conformant behaviour is possible with the right
combination of defines. Sadly, this is not documented, and clearly need to be.
With documentation to explain this, I think this bug can be closed.

I am adding the keyword documentation to this bug and will take care of it in
the next documentation sweep.


-- 

bkoz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14608


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