[LLVMbugs] [Bug 7281] New: Clang aborts with "Sema doesn't consider destructor as used" assertion.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 2 01:27:44 PDT 2010


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

           Summary: Clang aborts with "Sema doesn't consider destructor as
                    used" assertion.
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at reidspencer.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4962)
 --> (http://llvm.org/bugs/attachment.cgi?id=4962)
Pre-processed input that produces the assertion failure

While compiling Ice 3.4.0 (http://www.zeroc.com), clang generated an assertion
failure. This is on Linux (Ubuntu karmic) with this version of clang:

reid at venidici01:/proj/ice/Ice-3.4.0/cpp$ /proj/install/bin/clang --version
clang version 2.0 (trunk 105315)
Target: i386-pc-linux-gnu
Thread model: posix

The error produced is:

clang: /proj/llvm-top/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:831:
llvm::Constant*
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef, const
llvm::Type*, clang::CodeGen::GlobalDecl): Assertion `DD->isUsed() && "Sema
doesn't consider destructor as used."' failed.
Stack dump:
0.      Program arguments: /proj/install/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name CtrlCHandler.cpp -pic-level
2 -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -g -resource-dir
/proj/install/lib/clang/2.0 -DICE_UTIL_API_EXPORTS -D_REENTRANT -I../../include
-I.. -Wall -ferror-limit 19 -fmessage-length 180 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-HoPeu7.s -x c++
CtrlCHandler.cpp
1.      CtrlCHandler.cpp:78:1: current parser token 'void'
2.      CtrlCHandler.cpp:73:24: LLVM IR generation of declaration
'IceUtil::CtrlCHandlerException::ice_throw'
3.      CtrlCHandler.cpp:73:24: Generating code for declaration
'IceUtil::CtrlCHandlerException::ice_throw'
4.      CtrlCHandler.cpp:74:1: LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

The attached file is the pre-processed input.

-- 
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