[LLVMbugs] [Bug 7800] New: ICE: Sema doesn't consider destructor as used.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 3 10:28:47 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7800

           Summary: ICE: Sema doesn't consider destructor as used.
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: wotte at dre.vanderbilt.edu
                CC: llvmbugs at cs.uiuc.edu


Using r110117, appears in both release and debug configuration with the
attached preprocessed C++ file.    Below diagnostic is from the debug version. 



======= Error Diagnostic =============

clang++  -Wall -Wpointer-arith  -pipe  -pipe -DACE_HAS_CUSTOM_EXPORT_MACROS=0 
-DNDEBUG  -I/builds/Clang_ACE/ACE_wrappers -DACE_NDEBUG -DACE_USE_RCSID=0
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I/builds/Clang_ACE/ACE_wrappers -I../..
-I../../orbsvcs -DTAO_HAS_TYPED_EVENT_CHANNEL -DTAO_NOTIFY_SERV_BUILD_DLL  -c 
-o .shobj/Notify/Builder.o Notify/Builder.cpp
Assertion failed: (DD->isUsed() && "Sema doesn't consider destructor as
used."), function GetOrCreateLLVMFunction, file
/builds/Clang/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp, line 801.
0  clang             0x000000010111bb54 PrintStackTrace(void*) + 38
1  clang             0x000000010111c062 SignalHandler(int) + 254
2  libSystem.B.dylib 0x00007fff88a5980a _sigtramp + 26
3  clang             0x00000001005cccd5 llvm::SmallVector<unsigned int,
32u>::~SmallVector() + 21
4  libSystem.B.dylib 0x00007fff88ad4ef0 __pthread_markcancel + 0
5  clang             0x0000000100238ec8
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type const*, clang::CodeGen::GlobalDecl) + 1262
6  clang             0x000000010023b23b
clang::CodeGen::CodeGenModule::GetAddrOfFunction(clang::CodeGen::GlobalDecl,
llvm::Type const*) + 155
7  clang             0x000000010021628f
clang::CodeGen::CodeGenVTables::CreateVTableInitializer(clang::CXXRecordDecl
const*, unsigned long long const*, unsigned int,
llvm::SmallVector<std::pair<unsigned long long, clang::CodeGen::ThunkInfo>, 1u>
const&) + 1155
8  clang             0x000000010021ca42
clang::CodeGen::CodeGenVTables::GenerateConstructionVTable(clang::CXXRecordDecl
const*, clang::CodeGen::BaseSubobject const&, bool,
llvm::DenseMap<clang::CodeGen::BaseSubobject, unsigned long long,
llvm::DenseMapInfo<clang::CodeGen::BaseSubobject>, llvm::DenseMapInfo<unsigned
long long> >&) + 820
9  clang             0x0000000100210360 (anonymous
namespace)::VTTBuilder::GetAddrOfVTable(clang::CodeGen::BaseSubobject, bool,
llvm::DenseMap<clang::CodeGen::BaseSubobject, unsigned long long,
llvm::DenseMapInfo<clang::CodeGen::BaseSubobject>, llvm::DenseMapInfo<unsigned
long long> >&) + 240
10 clang             0x0000000100210453 (anonymous
namespace)::VTTBuilder::LayoutVTT(clang::CodeGen::BaseSubobject, bool) + 225
11 clang             0x000000010021071a (anonymous
namespace)::VTTBuilder::LayoutSecondaryVTTs(clang::CodeGen::BaseSubobject) +
252
12 clang             0x00000001002104a3 (anonymous
namespace)::VTTBuilder::LayoutVTT(clang::CodeGen::BaseSubobject, bool) + 305
13 clang             0x00000001002105e6 (anonymous
namespace)::VTTBuilder::LayoutVirtualVTTs(clang::CXXRecordDecl const*,
llvm::SmallPtrSet<clang::CXXRecordDecl const*, 4u>&) + 202
14 clang             0x00000001002104fc (anonymous
namespace)::VTTBuilder::LayoutVTT(clang::CodeGen::BaseSubobject, bool) + 394
15 clang             0x00000001002107fa (anonymous
namespace)::VTTBuilder::VTTBuilder(clang::CodeGen::CodeGenModule&,
clang::CXXRecordDecl const*, bool) + 194
16 clang             0x0000000100210edf
clang::CodeGen::CodeGenVTables::GenerateVTT(llvm::GlobalValue::LinkageTypes,
bool, clang::CXXRecordDecl const*) + 353
17 clang             0x000000010021d514
clang::CodeGen::CodeGenVTables::GenerateClassData(llvm::GlobalValue::LinkageTypes,
clang::CXXRecordDecl const*) + 190
18 clang             0x0000000100236e80
clang::CodeGen::CodeGenModule::EmitVTable(clang::CXXRecordDecl*, bool) + 60
19 clang             0x000000010025a55c (anonymous
namespace)::CodeGeneratorImpl::HandleVTable(clang::CXXRecordDecl*, bool) + 68
20 clang             0x000000010022bbea (anonymous
namespace)::BackendConsumer::HandleVTable(clang::CXXRecordDecl*, bool) + 58
21 clang             0x00000001002e0aa8 clang::Sema::DefineUsedVTables() + 832
22 clang             0x000000010026cb38
clang::Sema::ActOnEndOfTranslationUnit() + 50
23 clang             0x00000001006d6ca3
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 91
24 clang             0x000000010026bde1 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 456
25 clang             0x000000010008179c
clang::ASTFrontendAction::ExecuteAction() + 254
26 clang             0x000000010022c698 clang::CodeGenAction::ExecuteAction() +
826
27 clang             0x00000001000818aa clang::FrontendAction::Execute() + 256
28 clang             0x0000000100064a3e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 710
29 clang             0x0000000100027d77 cc1_main(char const**, char const**,
char const*, void*) + 1762
30 clang             0x000000010002f1ac main + 450
31 clang             0x0000000100026c84 start + 52
32 clang             0x000000000000003b start + 4294808555
Stack dump:
0.    Program arguments: /builds/Clang/llvm-build/Debug+Asserts/bin/clang -cc1
-triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name Builder.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -resource-dir
/builds/Clang/llvm-build/Debug+Asserts/lib/clang/2.8 -D
ACE_HAS_CUSTOM_EXPORT_MACROS=0 -D NDEBUG -D ACE_NDEBUG -D ACE_USE_RCSID=0 -D
ACE_HAS_EXCEPTIONS -D __ACE_INLINE__ -D TAO_HAS_TYPED_EVENT_CHANNEL -D
TAO_NOTIFY_SERV_BUILD_DLL -I /builds/Clang_ACE/ACE_wrappers -I
/builds/Clang_ACE/ACE_wrappers -I ../.. -I ../../orbsvcs -Wall -Wpointer-arith
-ferror-limit 19 -fmessage-length 270 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o .shobj/Notify/Builder.o -x c++
Notify/Builder.cpp 
1.    <eof> parser at end of file
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list