[all-commits] [llvm/llvm-project] 7a3b5d: [C] Fix crash-on-invalid due to infinite recursion...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu May 22 03:47:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a3b5d789d5fee6fe9883b6a3cb9d2ede4262276
      https://github.com/llvm/llvm-project/commit/7a3b5d789d5fee6fe9883b6a3cb9d2ede4262276
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-05-22 (Thu, 22 May 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaInit.cpp
    A clang/test/Sema/c2y-invalid-constexpr.c
    A clang/test/Sema/warn-default-const-init-crash.c

  Log Message:
  -----------
  [C] Fix crash-on-invalid due to infinite recursion (#140925)

There are two related issues being fixed in this patch. Both issues
relate to use of an invalid structure which contains a member that we
error recover such that the field has the same type as the structure. In
both cases, we would hit an infinite loop while analyzing the fields
because the type of the field matches the type of the record.

Fixes #140887



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