stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r590180 - /incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp
Date Tue, 30 Oct 2007 17:43:06 GMT
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 <farid_zaripov@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);



Mime
View raw message