public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: bjornw@planetarion.com To: gcc-gnats@gcc.gnu.org Subject: libstdc++/4220: min/max problem in std_limits.h Date: Tue, 04 Sep 2001 01:46:00 -0000 [thread overview] Message-ID: <20010904084329.15006.qmail@sourceware.cygnus.com> (raw) >Number: 4220 >Category: libstdc++ >Synopsis: min/max problem in std_limits.h >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Sep 04 01:46:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: bjornw@planetarion.com >Release: gcc version 3.1 20010901 (experimental) >Organization: >Environment: redhat-6.2 (all pacthed up june 2001), kernel-2.4.9 >Description: Compiling any program that includes (at some point in the include-chain) std_limits.h fails to do so because there are some conflicts with min/max. I'm sure there is a more sane fix than the below fix but it at least make my programs compile... >How-To-Repeat: Compile any program that include std_limits.h >Fix: std_limits.h:897: #ifdef min #undef min #endif #ifdef max #undef max #endif static _Tp min() throw() { return static_cast<_Tp>(0); } static _Tp max() throw() { return static_cast<_Tp>(0); } >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-09-04 1:46 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-09-04 1:46 bjornw [this message] 2002-04-01 18:49 bkoz 2002-04-04 12:06 bkoz
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=20010904084329.15006.qmail@sourceware.cygnus.com \ --to=bjornw@planetarion.com \ --cc=gcc-gnats@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).