[LLVMbugs] [Bug 15888] New: using -emit-llvm with -cxx-abi microsoft results in failed assertion upon out-of-line destructor definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 1 07:24:44 PDT 2013


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

            Bug ID: 15888
           Summary: using -emit-llvm with -cxx-abi microsoft results in
                    failed assertion upon out-of-line destructor
                    definition
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stephenwlin at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This:
    class A {
    public:
      ~A();
    };

    A::~A() { }

triggers a failed assertion:
    clang: CodeGenFunction.cpp:466: void
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, const clang::CodeGen::CGFunctionInfo&, const
clang::CodeGen::FunctionArgList&, clang::SourceLocation): Assertion
`CurFn->isDeclaration() && "Function already has body?"' failed.

with compiler flags:
    clang -cc1 -emit-llvm -o - -cxx-abi microsoft %s

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130501/f2ef080f/attachment.html>


More information about the llvm-bugs mailing list