Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 46682 invoked from network); 17 Apr 2008 09:48:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 09:48:37 -0000 Received: (qmail 8062 invoked by uid 500); 17 Apr 2008 09:48:38 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 8042 invoked by uid 500); 17 Apr 2008 09:48:38 -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 8033 invoked by uid 99); 17 Apr 2008 09:48:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 02:48:38 -0700 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG 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; Thu, 17 Apr 2008 09:47:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B3D25234C0D6 for ; Thu, 17 Apr 2008 02:45:21 -0700 (PDT) Message-ID: <2013480583.1208425521734.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 02:45:21 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-645) stream iterators into different streams compare equal 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-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589908#action_12589908 ] Farid Zaripov commented on STDCXX-645: -------------------------------------- Merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752 > stream iterators into different streams compare equal > ----------------------------------------------------- > > Key: STDCXX-645 > URL: https://issues.apache.org/jira/browse/STDCXX-645 > Project: C++ Standard Library > Issue Type: Bug > Components: 24. Iterators > Affects Versions: 4.1.3, 4.2.0 > Reporter: Mark Brown > Assignee: Martin Sebor > Fix For: 4.2.1 > > Attachments: c++std-lib-20221.eml > > Original Estimate: 2h > Time Spent: 8h > Remaining Estimate: 0h > > As Travis says in his reply to my post here: > http://www.nabble.com/stream-iterators-into-different-streams-compare-equal--tf4721505.html#a13498487: > Given 24.5.1.1 p1 and p2, it is pretty clear to me that the two iterators are both non-end-of-stream type, and they are both created on different streams. The streams are different, so the iterators should not compare equal. I guess one could claim that 24.5.1.2 p6 conflicts with 24.5 p3 because 'end-of-stream' isn't clearly defined, but in this particular case that doesn't matter. > This program aborts with stdcxx but not with gcc: > {code} > #include > #include > #include > int main () > { > std::istringstream a ("1"); > std::istream_iterator i (a); > std::istringstream b ("2"); > std::istream_iterator j (b); > assert (!(i == j)); > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.