[llvm-bugs] [Bug 24703] New: [ms] MicrosoftCXXABI.cpp: assertion failed: IA && "Expected MSInheritanceAttr on the CXXRecordDecl!"
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 4 04:25:18 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: andrey.kuleshov at intel.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150904/cdace2b7/attachment.html>
More information about the llvm-bugs
mailing list