public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14608] New: <iostream.h> nukes isfinite macro from <math.h>
@ 2004-03-16 18:23 zack at gcc dot gnu dot org
  2004-03-16 18:23 ` [Bug libstdc++/14608] " zack at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-03-16 18:23 UTC (permalink / raw)
  To: gcc-bugs

I will attach two test cases to this bug.  The first test case was provided to
me by a customer; it is a cut-down version of a larger piece of code that did
need both <math.h> and <iostream.h>.  The observed problem is that if both these
headers are included (in either order) in the same translation unit, the
isfinite macro (part of C99) is not available to subsequent code.  If only
<math.h> is included, then isfinite is available.

The second test case is the workaround that I found for GCC 3.3.3.  It does not
work with GCC 3.4, even with the obvious s/GLIBCPP/GLIBCXX/.

It should be noted that HPUX's libc does not implement all of C99, but it *does*
provide all of the C99 math functions - but isfinite() and friends are only
macros (which is allowed by C99).  I don't know what the C++ standard specifies
in this area but it seems to me that QoI dictates that C++ programs be able to
use all the system-provided library facilities.

-- 
           Summary: <iostream.h> nukes isfinite macro from <math.h>
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zack at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-hp-hpux11.23
  GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23


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


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <bug-14608-37@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-14608-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-11-15 12:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-16 18:23 [Bug libstdc++/14608] New: <iostream.h> nukes isfinite macro from <math.h> zack at gcc dot gnu dot org
2004-03-16 18:23 ` [Bug libstdc++/14608] " zack at gcc dot gnu dot org
2004-03-16 18:24 ` zack at gcc dot gnu dot org
2004-03-16 19:15 ` pinskia at gcc dot gnu dot org
2004-03-16 19:52 ` gdr at integrable-solutions dot net
2004-03-16 21:08   ` Zack Weinberg
2004-03-16 19:53 ` gdr at integrable-solutions dot net
2004-03-16 21:08 ` zack at codesourcery dot com
2004-03-17  9:50 ` zack at codesourcery dot com
2004-03-17 10:24 ` gdr at integrable-solutions dot net
     [not found] <bug-14608-37@http.gcc.gnu.org/bugzilla/>
2009-01-27 20:49 ` bkoz at gcc dot gnu dot org
     [not found] <bug-14608-4@http.gcc.gnu.org/bugzilla/>
2011-04-02 10:46 ` paolo.carlini at oracle dot com
2011-04-02 12:01 ` paolo.carlini at oracle dot com
2014-11-15 12:30 ` fxcoudert at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).