Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 20867 invoked from network); 31 Oct 2007 23:54:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 23:54:11 -0000 Received: (qmail 50136 invoked by uid 500); 31 Oct 2007 23:53:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 50120 invoked by uid 500); 31 Oct 2007 23:53:59 -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 50109 invoked by uid 99); 31 Oct 2007 23:53:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 16:53:59 -0700 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, 31 Oct 2007 23:54:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A6D2D7141F1 for ; Wed, 31 Oct 2007 16:53:50 -0700 (PDT) Message-ID: <32059947.1193874830680.JavaMail.jira@brutus> Date: Wed, 31 Oct 2007 16:53:50 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-321) error on std::operator==(istream_iterator, istream_iterator) In-Reply-To: <29799873.1169173950082.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-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-321: -------------------------------- Severity: Compiler Error Affects Version/s: 4.1.2 4.1.4 4.2 This affects all released versions. > error on std::operator==(istream_iterator, istream_iterator) > ------------------------------------------------------------ > > Key: STDCXX-321 > URL: https://issues.apache.org/jira/browse/STDCXX-321 > Project: C++ Standard Library > Issue Type: Bug > Components: 24. Iterators > Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2 > Environment: All > Reporter: Martin Sebor > Fix For: 4.2.1 > > > The well-formed program below fails to compile with both EDG eccp 3.8 and gcc 4.1.0 (I didn't try others but it's likely a bug in the library) > $ cat t.cpp && make t > #include > int main () > { > std::istream_iterator i; > (void)(i == i); > } > eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp > "/build/sebor/dev/stdlib/include/rw/_streamiter.h", line 124: error #349: no > operator "!" matches these operands > operand types are: ! std::basic_istream std::char_traits> > return (__x._C_strm && !!*__x._C_strm) == (__y._C_strm && !!*__y._C_strm); > ^ > detected during instantiation of "bool std::operator==(const > std::istream_iterator<_TypeT, _CharT, _Traits, _Distance> > &, const std::istream_iterator<_TypeT, _CharT, _Traits, > _Distance> &) [with _TypeT=char, _CharT=char, > _Traits=std::char_traits, _Distance=int]" at line 6 > of "t.cpp" > "/build/sebor/dev/stdlib/include/rw/_streamiter.h", line 124: error #349: no > operator "!" matches these operands > operand types are: ! std::basic_istream std::char_traits> > return (__x._C_strm && !!*__x._C_strm) == (__y._C_strm && !!*__y._C_strm); > ^ > detected during instantiation of "bool std::operator==(const > std::istream_iterator<_TypeT, _CharT, _Traits, _Distance> > &, const std::istream_iterator<_TypeT, _CharT, _Traits, > _Distance> &) [with _TypeT=char, _CharT=char, > _Traits=std::char_traits, _Distance=int]" at line 6 > of "t.cpp" > 2 errors detected in the compilation of "t.cpp". > make: *** [t.o] Error 2 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.