From stdcxx-dev-return-6204-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Wed Nov 21 18:27:04 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 93749 invoked from network); 21 Nov 2007 18:27:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2007 18:27:04 -0000 Received: (qmail 46597 invoked by uid 500); 21 Nov 2007 18:26:52 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 46580 invoked by uid 500); 21 Nov 2007 18:26:52 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 46540 invoked by uid 99); 21 Nov 2007 18:26:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2007 10:26:52 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2007 18:26:49 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51345714209 for ; Wed, 21 Nov 2007 10:26:43 -0800 (PST) Message-ID: <8932200.1195669603330.JavaMail.jira@brutus> Date: Wed, 21 Nov 2007 10:26:43 -0800 (PST) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Assigned: (STDCXX-632) std::string::insert (iterator, InputIterator, InputIterator) inserting self incorrect In-Reply-To: <2331365.1193941430823.JavaMail.jira@brutus> 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:all-tabpanel ] Farid Zaripov reassigned STDCXX-632: ------------------------------------ Assignee: Farid Zaripov > 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.2.1 > > > 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.