https://llvm.org/bugs/show_bug.cgi?id=24703
Bug ID: 24703
Summary: [ms] MicrosoftCXXABI.cpp: assertion failed: IA &&
"Expected MSInheritanceAttr on the CXXRecordDecl!"
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 14840
--> https://llvm.org/bugs/attachment.cgi?id=14840&action=edit
Assertion_log
=============ENVIRONMENT============
OS: windows
Clang: trunk
============SMALL REPRODUCER========
class D {
public:
D *foo3(D* d) {
return this;
}
virtual ~D(){}
};
typedef D * (D::*pf3)(D*);
bool this_check_D(D * x, pf3 &pmf)
{
D *xx = (x->*pmf)(x);
return (x == xx);
}
=====================================
Assertion failed: IA && "Expected MSInheritanceAttr on the CXXRecordDecl!"
llvm/tools/clang/lib/AST/MicrosoftCXXABI.cpp is guilty in this case.
This seems to be windows specific fail. Gcc can correctly handle such code.
Attached a file with a stack trace.
--------------------
Intel Software Engineer
Andrey Kuleshov
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs