Author: faridz
Date: Tue Oct 30 10:43:05 2007
New Revision: 590180

URL: http://svn.apache.org/viewvc?rev=590180&view=rev
Log:
2007-10-30 Farid Zaripov <[EMAIL PROTECTED]>

        Merged r585460 from trunk with a fix for STDCXX-601
        * 20.auto.ptr (test_auto_ptr): Ensure allocated
        object is value-initialized to avoid uninitialized memory
        read error.

Modified:
    incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp

Modified: incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp?rev=590180&r1=590179&r2=590180&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp Tue Oct 30 
10:43:05 2007
@@ -224,7 +224,7 @@
 
     rw_info (0, 0, 0, "[lib.auto.ptr.cons]");
 
-    T *pt = new T;
+    T *pt = new T ();
 
     // 20.4.5.1, p1
     std::auto_ptr<T> ap1 (pt);


Reply via email to