[llvm-bugs] [Bug 27030] New: [ms] Assertion failed: IA && "Expected MSInheritanceAttr on the CXXRecordDecl!"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 22 07:52:41 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27030

            Bug ID: 27030
           Summary: [ms]  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

!- related bugs that are marked as resolved:

https://llvm.org/bugs/show_bug.cgi?id=23828
https://llvm.org/bugs/show_bug.cgi?id=24703 

This assertion appears again -!

=========Environment===========
Os: Win
Language: C++
Version: trunk

=========Small Reproducer======
struct A{
   virtual void a(){};
};

template <typename T> struct B : public A{
   void b(int T::* n) {
       (int A::*) n;
   }
};

struct C : public B<C>{
   int n;
   void c() {
       b(&C::n);
   }
};

C obj;
int main(){
  obj.c();
  return 0;
}

==========Error============
Assertion failed: IA && "Expected MSInheritanceAttr on the CXXRecordDecl!",
file llvm/tools/clang/lib/AST/MicrosoftCXXABI.cpp, line 182

Andrey Kuleshov
======
Software Engineer
Intel Compiler Team

-- 
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/20160322/9ead6cb4/attachment.html>


More information about the llvm-bugs mailing list