[all-commits] [llvm/llvm-project] 41ea02: [Clang] Fix crash when recovering from an invalid ...

cor3ntin via All-commits all-commits at lists.llvm.org
Mon Feb 5 07:28:17 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41ea02261224446dadb1b1561d70137699255518
      https://github.com/llvm/llvm-project/commit/41ea02261224446dadb1b1561d70137699255518
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2024-02-05 (Mon, 05 Feb 2024)

  Changed paths:
    M clang/lib/AST/Type.cpp
    M clang/test/SemaCXX/cxx2c-pack-indexing.cpp

  Log Message:
  -----------
  [Clang] Fix crash when recovering from an invalid pack indexing type. (#80652)

If the pattern of a pack indexing type did not contain a pack, we would
still construct a pack indexing type (to improve error messages) but we
would fail to make the type as dependent, leading to infinite recursion
when trying to extract a canonical type.




More information about the All-commits mailing list