Re-enable 'test/SemaTemplate/temp_class_spec_neg.cpp', after commenting out the cause...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 18 Jul 2009 21:18:10 +0000 (21:18 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 18 Jul 2009 21:18:10 +0000 (21:18 +0000)
llvm-svn: 76337

clang/lib/AST/Type.cpp
clang/test/SemaTemplate/temp_class_spec_neg.cpp

index 23dbce213648cb204705a440350c9609bbe6beb8..ffcaf42ef9278e8c516239d739964f84841effdc 100644 (file)
@@ -57,7 +57,9 @@ void VariableArrayType::Destroy(ASTContext& C) {
 }
 
 void DependentSizedArrayType::Destroy(ASTContext& C) {
-  SizeExpr->Destroy(C);
+  // FIXME: Resource contention like in ConstantArrayWithExprType ?
+  // May crash, depending on platform or a particular build.
+  // SizeExpr->Destroy(C);
   this->~DependentSizedArrayType();
   C.Deallocate(this);
 }
index 42fcc5c75b83aec7b702cd8876e1bb033b9f2c4a..b50bd8f634aaa1ef8c27f6d22095e43eb33a27b2 100644 (file)
@@ -1,8 +1,4 @@
-// FIXME: Disabled because this always crashes on some platforms.
-// RUNX: clang-cc -fsyntax-only -verify %s
-// RUN: false
-// XFAIL
-
+// RUN: clang-cc -fsyntax-only -verify %s
 template<typename T> struct vector;
 
 // C++ [temp.class.spec]p6: