[all-commits] [llvm/llvm-project] 122b93: [Clang][Sema] Substitute constraints only for decl...

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Wed May 17 14:36:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 122b938944ceb966e04d7a4d253f7f9ba27c477d
      https://github.com/llvm/llvm-project/commit/122b938944ceb966e04d7a4d253f7f9ba27c477d
  Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M clang/lib/Sema/SemaConcept.cpp
    A clang/test/SemaTemplate/concepts-no-early-substitution.cpp

  Log Message:
  -----------
  [Clang][Sema] Substitute constraints only for declarations with different lexical contexts

Substitute constraints only for declarations with different lexical contexts.
This results in avoiding the substitution of constraints during the redeclaration check
inside a class (and by product caching the wrong substitution result).

Test plan: ninja check-all

Differential revision: https://reviews.llvm.org/D150730




More information about the All-commits mailing list