Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 23:02:06 +0000
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e335c7f5daab - stable/15 - Merge commit 787ba2426148 from llvm git (by Matheus Izvekov):
Message-ID:  <6a1a1aee.41433.1ac6724f@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=e335c7f5daab66a47beb60e76121be139bb0cf65

commit e335c7f5daab66a47beb60e76121be139bb0cf65
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-02-25 18:06:51 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-05-29 22:57:32 +0000

    Merge commit 787ba2426148 from llvm git (by Matheus Izvekov):
    
      [clang] create local instantiation scope for matching template template parameters (#183219)
    
      This fixes a bug where a partial substitution from the enclosing scope
      is used to prepopulate an unrelated template argument deduction.
    
      Fixes #181166
    
    This fixes an expected error when building the devel/catch port.
    
    PR:             292067
    MFC after:      1 month
    
    (cherry picked from commit 5ac874516b27474ab5b3d195544c72fb04b4b86e)
---
 contrib/llvm-project/clang/lib/Sema/SemaTemplateDeduction.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contrib/llvm-project/clang/lib/Sema/SemaTemplateDeduction.cpp b/contrib/llvm-project/clang/lib/Sema/SemaTemplateDeduction.cpp
index ce78ecc2d4a2..d1fb0c45c81f 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaTemplateDeduction.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaTemplateDeduction.cpp
@@ -6478,6 +6478,8 @@ bool Sema::isTemplateTemplateParameterAtLeastAsSpecializedAs(
   if (Inst.isInvalid())
     return false;
 
+  LocalInstantiationScope Scope(*this);
+
   //   Given an invented class template X with the template parameter list of
   //   A (including default arguments):
   //    - Each function template has a single function parameter whose type is


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1a1aee.41433.1ac6724f>