public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/4218: Compile fails due to std::min in basic_string.tcc
@ 2001-12-21 10:37 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2001-12-21 10:37 UTC (permalink / raw)
  To: bjornw, gcc-bugs, gcc-prs, nobody, paolo

Synopsis: Compile fails due to std::min in basic_string.tcc

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Fri Dec 21 10:37:35 2001
Responsible-Changed-Why:
    Investigating
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Fri Dec 21 10:37:35 2001
State-Changed-Why:
    Could you please provide a self contained testcase?
    
    Cheers,
    Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4218


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libstdc++/4218: Compile fails due to std::min in basic_string.tcc
@ 2002-01-27 16:26 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-01-27 16:26 UTC (permalink / raw)
  To: bjornw, gcc-bugs, gcc-prs, paolo

Synopsis: Compile fails due to std::min in basic_string.tcc

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 27 16:26:06 2002
State-Changed-Why:
    No feedback.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4218


^ permalink raw reply	[flat|nested] 3+ messages in thread

* libstdc++/4218: Compile fails due to std::min in basic_string.tcc
@ 2001-09-04  1:36 bjornw
  0 siblings, 0 replies; 3+ messages in thread
From: bjornw @ 2001-09-04  1:36 UTC (permalink / raw)
  To: gcc-gnats

>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:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-28  0:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-21 10:37 libstdc++/4218: Compile fails due to std::min in basic_string.tcc paolo
  -- strict thread matches above, loose matches on Subject: below --
2002-01-27 16:26 rodrigc
2001-09-04  1:36 bjornw

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).