[LLVMbugs] [Bug 7897] New: clang c++ crash in asm with temporary with non-trivial destructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 14 17:05:21 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7897
Summary: clang c++ crash in asm with temporary with non-trivial
destructor
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Testcase:
struct A { ~A(); };
int& foo(A);
void bar() {
asm("movl $0, %0" : "=r"(foo(A())) );
}
Crashes with:
clang: SemaDecl.cpp:4893: clang::OpaquePtr<0>
clang::Sema::ActOnFinishFunctionBody(clang::OpaquePtr<0>,
clang::ASTOwningPtr<&clang::ActionBase::DeleteStmt>, bool): Assertion
`ExprTemporaries.empty() && "Leftover temporaries in function"' failed.
--
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