http://llvm.org/bugs/show_bug.cgi?id=7233
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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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
1885.
--
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