[all-commits] [llvm/llvm-project] 108df0: [clang] Backport: fix transformation of substitute...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Sat Feb 28 01:27:37 PST 2026


  Branch: refs/heads/release/22.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 108df0694cc12fa496f63faa3a8762e7cc1a3b37
      https://github.com/llvm/llvm-project/commit/108df0694cc12fa496f63faa3a8762e7cc1a3b37
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2026-02-28 (Sat, 28 Feb 2026)

  Changed paths:
    M clang/lib/AST/DeclTemplate.cpp
    A clang/test/SemaTemplate/GH181062.cpp

  Log Message:
  -----------
  [clang] Backport: fix transformation of substituted constant template parameters of partial specializations

This fixes a helper so it implements retrieval of the argument replaced
for a template parameter for partial spcializations.

This was left out of the original patch, since it's quite hard to actually test.

This helper implements the retrieval for variable templates, but only for
completeness sake, as no current users rely on this, and I don't think a similar
test case is possible to implement with variable templates.

This fixes a regression introduced in #161029 which will be backported to llvm-22,
so there are no release notes.

Backport from #183348

Fixes #181062
Fixes #181410



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