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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

$ 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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to