Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 88502 invoked from network); 30 May 2007 00:24:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 00:24:37 -0000 Received: (qmail 79929 invoked by uid 500); 30 May 2007 00:24:41 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 79874 invoked by uid 500); 30 May 2007 00:24:41 -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 79560 invoked by uid 99); 30 May 2007 00:24:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 17:24:41 -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; Tue, 29 May 2007 17:24:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E072971417F for ; Tue, 29 May 2007 17:24:15 -0700 (PDT) Message-ID: <14006470.1180484655917.JavaMail.jira@brutus> Date: Tue, 29 May 2007 17:24:15 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-237) SIGFPE in std::operator%(slice, slice) In-Reply-To: <16513159.1151524289853.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-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-237: -------------------------------- Affects Version/s: 4.2 Scheduled for 4.2.0. > SIGFPE in std::operator%(slice, slice) > -------------------------------------- > > Key: STDCXX-237 > URL: https://issues.apache.org/jira/browse/STDCXX-237 > Project: C++ Standard Library > Issue Type: Bug > Components: 26. Numerics > Affects Versions: 4.2 > Reporter: Martin Sebor > Assignee: Martin Sebor > > Moved from the Rogue Wave bug tracking database: > ****Created By: sebor @ Apr 27, 2000 10:43:55 PM**** > Subject: valarray/gslice problem > Date: Fri, 21 Apr 2000 04:18:09 -0700 > From: Dennis Handly > To: sebor@roguewave.com > CC: dhandly@hpcllmx.cup.hp.com, wanc@cup.hp.com > The following test fails with a SIGFPE (% by 0): > #include > int main() { > std::valarray ival; > std::gslice test_gslice; > std::operator%(ival[test_gslice], ival[test_gslice]); > } > test_gslice should select no elements. > I think the problem is in : > inline size_t gslice::ind_numb() const > { > size_t value = 1; > for(size_t ind=0; ind< length_.size(); ind++ ) > value*= length_[ind]; > return value; > } > This doesn't return 0 if length_.size() is 0. > ****Modified By: sebor @ May 18, 2000 12:01:47 PM**** > Subject: Re: valarray/gslice problem > Date: Thu, 11 May 2000 22:14:58 -0700 > From: Dennis Handly > To: sebor@roguewave.com > CC: dhandly@hpcllmx.cup.hp.com, wanc@cup.hp.com > >The incident number is 22770. > I changed valarray to check for 0 and return 0: > inline size_t gslice::ind_numb() const > { > size_t value = 1; > register size_t lsize = _C_length.size(); > if (lsize == 0) > return 0; > for(size_t __i=0; __i < lsize; __i++ ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.