http://llvm.org/bugs/show_bug.cgi?id=10057
Summary: leftover temporaries in function
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
This tiny program causes a crash in clang++ -fsyntax-only:
struct Empty {};
struct Exciting {
~Exciting();
void operator=(const Empty&) const;
};
template <class VarType>
void Test(const VarType& value) {
return Exciting() = Empty() << value;
}
This is the assertion:
clang: SemaDecl.cpp:6380: clang::Decl*
clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs