Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 98669 invoked from network); 22 Feb 2008 17:44:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 17:44:09 -0000 Received: (qmail 94935 invoked by uid 500); 22 Feb 2008 17:43:58 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 94884 invoked by uid 500); 22 Feb 2008 17:43:58 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 94806 invoked by uid 99); 22 Feb 2008 17:43:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 09:43:57 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 17:43:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9F77A234C048 for ; Fri, 22 Feb 2008 09:43:19 -0800 (PST) Message-ID: <2026014524.1203702199651.JavaMail.jira@brutus> Date: Fri, 22 Feb 2008 09:43:19 -0800 (PST) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Resolved: (STDCXX-629) std::string::assign (reverse_iterator, reverse_iterator) assigning self incorrect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov resolved STDCXX-629. ---------------------------------- Resolution: Fixed Fixed in STDCXX-170. Will be closed after adding the regression test for the issue. > std::string::assign (reverse_iterator, reverse_iterator) assigning self incorrect > --------------------------------------------------------------------------------- > > Key: STDCXX-629 > URL: https://issues.apache.org/jira/browse/STDCXX-629 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0 > Environment: All > Reporter: Farid Zaripov > Assignee: Farid Zaripov > Priority: Minor > Fix For: 4.2.1 > > > The 21.string.assign.cpp test has been failing a number of assertions for self-referential test cases that exercise the ability to assign a substring of a string into itself using the assign(InputIterator, InputIterator) member template specialization for InputIterator being an actual reverse_iterator. The program below reproduces the problem in a small isolated test case. > #include > #include > int main () > { > std::string s ("abc"); > s.assign (s.rbegin () + 1, s.rend ()); > assert ("ba" == s); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.