[all-commits] [llvm/llvm-project] 227afa: [Clang] Consider outer instantiation scopes for co...

Younan Zhang via All-commits all-commits at lists.llvm.org
Mon Nov 4 06:35:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 227afac307fac0d4c8ac2a3709df415e34629883
      https://github.com/llvm/llvm-project/commit/227afac307fac0d4c8ac2a3709df415e34629883
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2024-11-04 (Mon, 04 Nov 2024)

  Changed paths:
    M clang/lib/Sema/SemaConcept.cpp
    M clang/test/SemaTemplate/concepts-out-of-line-def.cpp

  Log Message:
  -----------
  [Clang] Consider outer instantiation scopes for constraint normalization (#114749)

We need to compare constraint expressions when instantiating a friend
declaration that is lexically defined within a class template. Since the
evaluation is deferred, the expression might refer to untransformed
function parameters such that the substitution needs the mapping of
instantiation.

These mappings are maintained by the function declaration instantiation,
so we need to establish a "transparent" LocalInstantiationScope before
substituting into the constraint.

No release note as this fixes a regression in 19.

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



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