[all-commits] [llvm/llvm-project] 4d2fb6: [clang] Widen SubstTemplateTypeParmType::PackIndex...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Sep 23 09:55:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d2fb60d36492c4dfba957d2b726abf9dd30b8fc
      https://github.com/llvm/llvm-project/commit/4d2fb60d36492c4dfba957d2b726abf9dd30b8fc
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M clang/include/clang/AST/TypeBase.h
    M clang/test/SemaCXX/make_integer_seq.cpp

  Log Message:
  -----------
  [clang] Widen SubstTemplateTypeParmType::PackIndex to 16 bits (#225584)

#132748 narrowed PackIndex to 15 bits when adding Final, leaving a bit
unused, so a type pack with 32768 or more elements stores a wrapped pack
index. The node then keys differently from its lookup, failing the
UniquingSet insert assertion. Restore the 16-bit width, matching
SubstPackType's 16-bit NumArgs.

Fix assertion failure https://godbolt.org/z/9r1jEqqob
Aided by Opus 5.5



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