[llvm-bugs] [Bug 45879] New: Assertion `idx < size()' failed in HandleUnionActiveMemberChange

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 11 18:11:01 PDT 2020


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

            Bug ID: 45879
           Summary: Assertion `idx < size()' failed in
                    HandleUnionActiveMemberChange
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

$ cat test-formatted.ii
struct a {
  char b = 0;
};

struct s {
  a f;
};

constexpr void m() {
  a l;
  l = s{}.f;
}

void p() { return m(); }
$ clang++ -c -o test.o test-formatted.ii -std=gnu++2a
clang++: ../llvm/include/llvm/ADT/SmallVector.h:180:
llvm::SmallVectorTemplateCommon::const_reference
llvm::SmallVectorTemplateCommon<clang::APValue::LValuePathEntry,
void>::operator[](llvm::SmallVectorTemplateCommon::size_type) const [T =
clang::APValue::LValuePathEntry]: Assertion `idx < size()' failed.

-- 
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/20200512/384d5662/attachment.html>


More information about the llvm-bugs mailing list