From e7f38406a38f453e83000a1e52a5ec0aada66e51 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 18 Jul 2009 21:18:10 +0000 Subject: [PATCH] Re-enable 'test/SemaTemplate/temp_class_spec_neg.cpp', after commenting out the cause of the crash. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76337 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Type.cpp | 4 +++- test/SemaTemplate/temp_class_spec_neg.cpp | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 23dbce2136..ffcaf42ef9 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -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); } diff --git a/test/SemaTemplate/temp_class_spec_neg.cpp b/test/SemaTemplate/temp_class_spec_neg.cpp index 42fcc5c75b..b50bd8f634 100644 --- a/test/SemaTemplate/temp_class_spec_neg.cpp +++ b/test/SemaTemplate/temp_class_spec_neg.cpp @@ -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 struct vector; // C++ [temp.class.spec]p6: -- 2.50.1