public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gdr at integrable-solutions dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/14608] <iostream.h> nukes isfinite macro from <math.h> Date: Wed, 17 Mar 2004 10:24:00 -0000 [thread overview] Message-ID: <20040317102441.9499.qmail@sources.redhat.com> (raw) In-Reply-To: <20040316182307.14608.zack@gcc.gnu.org> ------- Additional Comments From gdr at integrable-solutions dot net 2004-03-17 10:24 ------- Subject: Re: <iostream.h> nukes isfinite macro from <math.h> "zack at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org> writes: | Further comments from the customer ... | | >From: "Zack Weinberg" <zack@codesourcery.com> | >Dennis is not far off. What's happening is that <iostream> includes | ><cmath>. <cmath> includes <math.h> and then #undefs a bunch of macros | >that a strict reading of C++98 disallows, including "isfinite". | | Strict reading of C++98 would also disallow you undefing user macros | just to make the namespace clean. Strict reading of C++98 requires that the following program compile, if it fails then it is V3 error: #include <cmath> namespace foo { void isfinite(int) { return 0; } } -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14608
next prev parent reply other threads:[~2004-03-17 10:24 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-16 18:23 [Bug libstdc++/14608] New: " 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 [this message] [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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040317102441.9499.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).