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

           Summary: DeclRefExpr assertion due to friend functions?
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


This testcase causes a crash in clang IRGen:

  struct Foo {
    friend bool TryFoo(Foo *f) { return TryFoo(0, f); }
    friend bool TryFoo(int, Foo *f);
  };
  bool TryFoo(Foo *f);
  int main(void) {
    Foo f;
    TryFoo(&f);
  }

clang: CGExpr.cpp:1164: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*):
Assertion `V && "DeclRefExpr not entered in LocalDeclMap?"' failed.
Aborted

-- 
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

Reply via email to