Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 80014 invoked from network); 27 Dec 2005 11:23:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Dec 2005 11:23:55 -0000 Received: (qmail 34149 invoked by uid 500); 27 Dec 2005 11:23:54 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 34095 invoked by uid 500); 27 Dec 2005 11:23:54 -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 34071 invoked by uid 99); 27 Dec 2005 11:23:54 -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; Tue, 27 Dec 2005 03:23:53 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id F1E08CB for ; Tue, 27 Dec 2005 12:23:31 +0100 (CET) Message-ID: <41031487.1135682611989.JavaMail.jira@ajax.apache.org> Date: Tue, 27 Dec 2005 12:23:31 +0100 (CET) From: "Duraid Madina (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-90) bug in algorithm.cc In-Reply-To: <62388561.1135682372727.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-90?page=comments#action_12361265 ] Duraid Madina commented on STDCXX-90: ------------------------------------- Sorry for this dupe - I received no feedback from the previous issue submission (STDCXX-89) other than a "Proxy Error" :\ > bug in algorithm.cc > ------------------- > > Key: STDCXX-90 > URL: http://issues.apache.org/jira/browse/STDCXX-90 > Project: STDCXX > Type: Bug > Components: 25. Algorithms > Versions: 4.1.3 > Environment: HP-UX 11.23, aCC: HP aC++/ANSI C B3910B A.06.06 [Nov 7 2005] > Reporter: Duraid Madina > > 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