You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/10/30 18:43:06 UTC

svn commit: r590180 - /incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp

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 <fa...@epam.com>

	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);