[all-commits] [llvm/llvm-project] e7ee9b: [C23] Fix failing assertion on structural equivale...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Mon Jun 8 09:52:41 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7ee9b15e7ee4ea99a83c7d059f0cc90d8d8ba7c
      https://github.com/llvm/llvm-project/commit/e7ee9b15e7ee4ea99a83c7d059f0cc90d8d8ba7c
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ASTStructuralEquivalence.cpp
    M clang/test/C/C23/n3037.c

  Log Message:
  -----------
  [C23] Fix failing assertion on structural equivalence checks (#201650)

This assertion was added in 6a22580305d779e2d712900d49578de9a5cb14e8 as
a sanity check and it turns out that the assertion was false in two
different ways.

1) An enumeration might not have an underlying type in our AST; this
happens for a forward declared enumeration without a fixed underlying
type.
2) When comparing the members, we could compare a member of enumeration
type with a member of a non-integral type like a union or structure.

We now account for both cases.

Fixes #190227



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list