Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 53103 invoked from network); 17 Mar 2008 16:19:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 16:19:08 -0000 Received: (qmail 90733 invoked by uid 500); 17 Mar 2008 16:19:06 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 90718 invoked by uid 500); 17 Mar 2008 16:19:06 -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 90709 invoked by uid 99); 17 Mar 2008 16:19:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 09:19:06 -0700 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; Mon, 17 Mar 2008 16:18:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 63C0F234C09B for ; Mon, 17 Mar 2008 09:17:24 -0700 (PDT) Message-ID: <1991590433.1205770644407.JavaMail.jira@brutus> Date: Mon, 17 Mar 2008 09:17:24 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-632) std::string::insert (iterator, InputIterator, InputIterator) inserting 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-632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579495#action_12579495 ] Farid Zaripov commented on STDCXX-632: -------------------------------------- The regression test added in trunk thus: http://svn.apache.org/viewvc?rev=637959&view=rev > std::string::insert (iterator, InputIterator, InputIterator) inserting self incorrect > ------------------------------------------------------------------------------------- > > Key: STDCXX-632 > URL: https://issues.apache.org/jira/browse/STDCXX-632 > 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.3 > > > The 21.string.insert.cpp test has been failing a number of assertions for self-referential test cases that exercise the ability to insert a substring of a string into itself using the insert(iterator, InputIterator, InputIterator) member template specialization for InputIterator being an actual Input Iterator. The program below reproduces the problem in a small isolated test case. > #include > #include > int main () > { > std::string s ("abc"); > typedef const unsigned char UChar; > s.insert (s.begin (), (UChar*)&s [1], (UChar*)&s [2]); > assert ("babc" == s); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.