public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: bjornw@planetarion.com To: gcc-gnats@gcc.gnu.org Subject: libstdc++/4218: Compile fails due to std::min in basic_string.tcc Date: Tue, 04 Sep 2001 01:36:00 -0000 [thread overview] Message-ID: <20010904083403.13379.qmail@sourceware.cygnus.com> (raw) >Number: 4218 >Category: libstdc++ >Synopsis: Compile fails due to std::min in basic_string.tcc >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Sep 04 01:36: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: When compiling a program using string::rfind(), the following code from basic_string.tcc is is incorrect : basic_string.tcc:630: __pos = std::min(__size - __n ,__pos); This is resolved into: __pos = std::((__size - __n) < (__pos) ? (__size-n) : (__pos)); And the compiler choked on __size. >How-To-Repeat: >Fix: __pos = min(__size - __n ,__pos); Fixes the problem. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-09-04 1:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-09-04 1:36 bjornw [this message] 2001-12-21 10:37 paolo 2002-01-27 16:26 rodrigc
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=20010904083403.13379.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).