[LLVMbugs] [Bug 7898] New: clang c++ crash with invalid reference to member function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 14 17:18:20 PDT 2010


           Summary: clang c++ crash with invalid reference to member
           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

struct A {
  static int ns (float);
  int ns (int);
  void foo();
void A::foo ()
  int (A::*ptr4) (int) = ns;

Crashes with:
clang: SemaOverload.cpp:934: bool
clang::Sema::IsStandardConversion(clang::Expr*, clang::QualType, bool,
clang::StandardConversionSequence&): Assertion `Context.hasSameType(FromType,
FixOverloadedFunctionReference(From, AccessPair, Fn)->getType())' failed.

Note that Comeau gives "error: nonstandard form for taking the address of a
member 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