This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3745: bug in basic_string.tcc
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3745: bug in basic_string.tcc
- From: alm at iis dot fhg dot de
- Date: 20 Jul 2001 09:04:42 -0000
- Cc: spz at iis dot fhg dot de
- Reply-To: alm at iis dot fhg dot de
>Number: 3745
>Category: c++
>Synopsis: bug in basic_string.tcc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 20 02:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: alm@iis.fhg.de
>Release: unknown-1.0
>Organization:
>Environment:
Linux SuSE 7.2
>Description:
On line 630 of the basic_string.tcc file:
__pos = std::min(__size - __n ,__pos);
should be:
__pos = min(__size - __n ,__pos);
since the entire block is in the "namespace std {" scope.
This can lead to a compilation error. Furthermore, all other calls
to the "min" template are made without the namespace "std::"
identifier.
>How-To-Repeat:
>Fix:
Just remove "std::" on line 630
>Release-Note:
>Audit-Trail:
>Unformatted: