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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to