[LLVMbugs] [Bug 10057] New: leftover temporaries in function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 31 20:53:04 PDT 2011


           Summary: leftover temporaries in function
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

This tiny program causes a crash in clang++ -fsyntax-only:

  struct Empty {};

  struct 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"'

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