[LLVMbugs] [Bug 7233] New: ICE on invalid pointer-to-member expression

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 25 18:34:30 PDT 2010


           Summary: ICE on invalid pointer-to-member expression
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu

Testcase (C++):

struct X {
  virtual void foo();
void foo(struct X *x) {
  void (*p)(void) = &(x->*(&X::foo));

clang fails with:

Assertion failed: (E && !hasAggregateLLVMType(E->getType()) && "Invalid scalar
expression to emit"), function EmitScalarExpr, file CGExprScalar.cpp, line

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