Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 38980 invoked from network); 11 Dec 2006 22:25:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2006 22:25:42 -0000 Received: (qmail 7635 invoked by uid 500); 11 Dec 2006 22:25:50 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 7622 invoked by uid 500); 11 Dec 2006 22:25:50 -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 7611 invoked by uid 99); 11 Dec 2006 22:25:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2006 14:25:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Mon, 11 Dec 2006 14:25:41 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EFE1471413D for ; Mon, 11 Dec 2006 14:25:20 -0800 (PST) Message-ID: <6793367.1165875920964.JavaMail.jira@brutus> Date: Mon, 11 Dec 2006 14:25:20 -0800 (PST) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-309) std::valarray::operator[](std::gslice) bad result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org std::valarray::operator[](std::gslice) bad result ------------------------------------------------- Key: STDCXX-309 URL: http://issues.apache.org/jira/browse/STDCXX-309 Project: C++ Standard Library Issue Type: Bug Components: 26. Numerics Affects Versions: 4.1.2, 4.1.3 Environment: all Reporter: Martin Sebor Assigned To: Martin Sebor Fix For: 4.2 The program below aborts at runtime with the latest trunk: $ cat t.cpp && nice gmake t && ./t #include #include #include int main () { const int a[] = { 1, 2, 3, 4, 5, 6 }; const std::valarray v (a, sizeof a / sizeof *a); const std::size_t start = 5; std::valarray length (1, 1); std::valarray stride (1, 1); const std::gslice gsl (start, length, stride); const std::valarray vsl = v [gsl]; assert (a [start] == vsl [0]); } aCC -c -I/nfs/devco/sebor/dev/stdlib/include/ansi -I/usr/include -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/nfs/devco/sebor/dev/stdlib/include -I/build/sebor/aCC-3.70-15S/include -I/nfs/devco/sebor/dev/stdlib/examples/include -Aa +nostl -g +d +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 t.cpp aCC t.o -o t -Aa +nostl -Wl,+s -Wl,+vnocompatwarnings -mt +DD64 -L/build/sebor/aCC-3.70-15S/lib -lstd15S -lm Assertion failed: a [start] == vsl [0], file t.cpp, line 19 ABORT instruction (core dumped) -- 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