From stdcxx-commits-return-1092-apmail-incubator-stdcxx-commits-archive=incubator.apache.org@incubator.apache.org Fri Jan 12 20:12:01 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 96200 invoked from network); 12 Jan 2007 20:12:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 20:12:01 -0000 Received: (qmail 86690 invoked by uid 500); 12 Jan 2007 20:12:08 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 86669 invoked by uid 500); 12 Jan 2007 20:12:08 -0000 Mailing-List: contact stdcxx-commits-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-commits@incubator.apache.org Received: (qmail 86658 invoked by uid 99); 12 Jan 2007 20:12:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 12:12:07 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 12:12:00 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 7D2951A981A; Fri, 12 Jan 2007 12:10:59 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r495715 - /incubator/stdcxx/trunk/include/valarray.cc Date: Fri, 12 Jan 2007 20:10:59 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070112201059.7D2951A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Fri Jan 12 12:10:58 2007 New Revision: 495715 URL: http://svn.apache.org/viewvc?view=rev&rev=495715 Log: 2007-01-12 Martin Sebor * valarray.cc (shift, cshift): Used T(0) instead of T() in the declaration of an object to avoid a gcc 3.2 bug (see STDCXX-317). Modified: incubator/stdcxx/trunk/include/valarray.cc Modified: incubator/stdcxx/trunk/include/valarray.cc URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/valarray.cc?view=diff&rev=495715&r1=495714&r2=495715 ============================================================================== --- incubator/stdcxx/trunk/include/valarray.cc (original) +++ incubator/stdcxx/trunk/include/valarray.cc Fri Jan 12 12:10:58 2007 @@ -37,10 +37,9 @@ return *this; if (size () <= (_RWSTD_SIZE_T)(__n < 0 ? -__n : __n)) - return valarray (_TypeT (), size ()); + return valarray (_TypeT (0), size ()); - _RW::__rw_array <_TypeT> __tmp = - _RW::__rw_array <_TypeT> (_TypeT (), size ()); + _RW::__rw_array <_TypeT> __tmp (_TypeT (0), size ()); // 26.3.2.7, p5 - negative n shifts right, positive left if (__n < 0) @@ -63,7 +62,7 @@ if (0 == __rem) return *this; - _RW::__rw_array<_TypeT> __tmp (_TypeT (), size ()); + _RW::__rw_array<_TypeT> __tmp (_TypeT (0), size ()); // 26.3.2.7, p7 - negative n rotates right, positive left rotate_copy (_C_array.begin (),