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  <[EMAIL PROTECTED]>

        * 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 (),


Reply via email to