[LLVMbugs] [Bug 7891] New: Assertion `DRE->getDeclName().getNameKind() == DeclarationName::Identifier && "Unhandled decl name kind!"' failed mangling function referring to member operator

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 14 15:54:44 PDT 2010


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

           Summary: Assertion `DRE->getDeclName().getNameKind() ==
                    DeclarationName::Identifier && "Unhandled decl name
                    kind!"' failed mangling function referring to member
                    operator
           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 {
  int operator+();
};
template <int (A::*)()> struct S {};
template <typename T> void g (S<&T::operator+ >) {}
template void g<A> (S<&A::operator+>);

Crashes with:
clang: Mangle.cpp:1919: void<unnamed>::CXXNameMangler::mangleExpression(const
clang::Expr*): Assertion `DRE->getDeclName().getNameKind() ==
DeclarationName::Identifier && "Unhandled decl name kind!"' 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