Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 19247 invoked from network); 30 Dec 2005 23:35:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Dec 2005 23:35:26 -0000 Received: (qmail 97978 invoked by uid 500); 30 Dec 2005 23:35:25 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 97929 invoked by uid 500); 30 Dec 2005 23:35:24 -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 97918 invoked by uid 99); 30 Dec 2005 23:35:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2005 15:35:24 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 5AAE9DE for ; Sat, 31 Dec 2005 00:35:03 +0100 (CET) Message-ID: <1963996876.1135985703369.JavaMail.jira@ajax.apache.org> Date: Sat, 31 Dec 2005 00:35:03 +0100 (CET) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-89) compilation error on std::lower_bound() with Iterator::value_type != T In-Reply-To: <41073527.1135682612379.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/STDCXX-89?page=all ] Martin Sebor updated STDCXX-89: ------------------------------- Summary: compilation error on std::lower_bound() with Iterator::value_type != T (was: bug in algorithm.cc) Environment: all (was: HP-UX 11.23, aCC: HP aC++/ANSI C B3910B A.06.06 [Nov 7 2005]) Assign To: Martin Sebor > compilation error on std::lower_bound() with Iterator::value_type != T > ----------------------------------------------------------------------------------- > > Key: STDCXX-89 > URL: http://issues.apache.org/jira/browse/STDCXX-89 > Project: STDCXX > Type: Bug > Components: 25. Algorithms > Versions: 4.1.3 > Environment: all > Reporter: Duraid Madina > Assignee: Martin Sebor > Attachments: stdcxx-comparison.patch > > On both the released ("incubating") and current subversion trunk versions of stdcxx, I trip across the following - I think it is your bug: > "/home/duraid/stdcxx/include/algorithm.cc", line 1180: error #2304: no instance of function "__rw::__rw_lt<_TypeT>::operator() [with _Type > T=std::iterator_traits<__rw::__rw_debug_iter>, std::vector alValue *, std::allocator>::pointer, std::vector>::pointer>> > ::value_type]" matches the argument list > argument types are: (std::iterator_traits<__rw::__rw_debug_iter lue *>>, std::vector>::pointer, std::vector lvm::GlobalValue *>>::pointer>::iterator_type>::value_type, const llvm::GlobalValue *const) > object type is: __rw::__rw_lt :GlobalValue *>>, std::vector>::pointer, std::vector locator>::pointer>>::value_type> > if (__comp (*__middle, __val)) { > ^ > detected during instantiation of "_RandomAccessIter std::__lower_bound(_RandomAccessIter, _RandomAccessIter, const _TypeT &, _Co > mpare, _Dist *, std::random_access_iterator_tag) [with _RandomAccessIter=__rw::__rw_debug_iter ator>, std::vector>::pointer, std::vector *, std::allocator>::pointer>, _TypeT=const llvm::GlobalValue *, _Compare=__rw::__rw_lt w_debug_iter>, std::vector GlobalValue *>>::pointer, std::vector>::pointer>>::value_type>, _Dist=std::iterat > or_traits<__rw::__rw_debug_iter>, std::vector d::allocator>::pointer, std::vector>::pointer>>::difference_ > type]" > Please see http://kinoko.c.u-tokyo.ac.jp/~duraid/stdcxxissues if you want to try and reproduce this. There, you will find the following files: > DataStructure.cpp: the code I'm trying to build (it is a part of LLVM, http://www.llvm.org) > Note: the problem is the const keyword on line 694 (const GlobalValue *V = Src[0]; ) - removing that keyword allows the file to be compiled, but I think the const keyword should be legal there. > algorithmcc_bug.i: (preprocessed source: you should be able to compile this with aCC as follows: > aCC -D__STDC_LIMIT_MACROS -AA -DNDEBUG -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG +d +w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2401 +W2487 +O2 -c algorithmcc_bug.i > compile_log: what I see when trying to compile DataStructure.cpp with the const keyword present (grep for the error #2304) > If you would like an account on the machine where I see this, just let me know! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira