[cfe-commits] r72680 - /cfe/trunk/test/SemaTemplate/example-dynarray.cpp

Anders Carlsson andersca at mac.com
Sun May 31 17:40:11 PDT 2009


Author: andersca
Date: Sun May 31 19:40:08 2009
New Revision: 72680

URL: http://llvm.org/viewvc/llvm-project?rev=72680&view=rev
Log:
After spending 15 minutes trying to figure out why this was crashing, I realized it was a bug in the test case :)

Modified:
    cfe/trunk/test/SemaTemplate/example-dynarray.cpp

Modified: cfe/trunk/test/SemaTemplate/example-dynarray.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/example-dynarray.cpp?rev=72680&r1=72679&r2=72680&view=diff

==============================================================================
--- cfe/trunk/test/SemaTemplate/example-dynarray.cpp (original)
+++ cfe/trunk/test/SemaTemplate/example-dynarray.cpp Sun May 31 19:40:08 2009
@@ -31,7 +31,7 @@
     T* NewStart = (T*)malloc(sizeof(T) * other.size());
 
     for (unsigned I = 0, N = other.size(); I != N; ++I)
-      new (Start + I) T(other[I]);
+      new (NewStart + I) T(other[I]);
 
     // FIXME: destroy everything in Start
     free(Start);





More information about the cfe-commits mailing list