[llvm-bugs] [Bug 29104] New: Assertion failed: IsDerivedFrom(FromLoc, FromRecordType, URecordType)

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 23 09:26:16 PDT 2016


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

            Bug ID: 29104
           Summary: Assertion failed: IsDerivedFrom(FromLoc,
                    FromRecordType, URecordType)
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
    Classification: Unclassified

compiling with clang version 4.0.0 (trunk 279516) the following:


struct b {
  int c;
};
struct d : b {
  using b::c;
};
struct e : d {
  a;
  int m_fn1() { c; }
};


results in compilation error and then an assert:

Assertion failed: IsDerivedFrom(FromLoc, FromRecordType, URecordType), file
C:\llvm\tools\clang\lib\Sema\SemaExpr.cpp, line 2699

-- 
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/20160823/ac1a874d/attachment-0001.html>


More information about the llvm-bugs mailing list