[all-commits] [llvm/llvm-project] 67d907: [Clang] Reset ArgPackSubstIndex before rewriting C...

Younan Zhang via All-commits all-commits at lists.llvm.org
Wed May 28 08:34:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67d907a72fab9c4f895b36f8d7f01a97728b94f6
      https://github.com/llvm/llvm-project/commit/67d907a72fab9c4f895b36f8d7f01a97728b94f6
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

  Changed paths:
    M clang/lib/Sema/SemaTemplateDeductionGuide.cpp
    M clang/test/SemaTemplate/deduction-guide.cpp

  Log Message:
  -----------
  [Clang] Reset ArgPackSubstIndex before rewriting CTAD template parameters (#141741)

032ad59 taught the instantiator to expand template argument packs for
rewrite. However we might already be in a pack expansion when we
synthesizing the CTAD guide, so we reset the ArgPackSubstIndex to ensure
it doesn't get confused.

No release note because this is a regression in Clang 21.

Fixes https://github.com/llvm/llvm-project/issues/141425

---------

Co-authored-by: Erich Keane <ekeane at nvidia.com>



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