From 1dfe63e4f75fa2a8c94aaf4aefaf48d164bc90db Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 14 Feb 2026 21:42:18 +0100 Subject: [PATCH] Merge commit d803c61aca0d from llvm git (by Corentin Jabot): [Clang] Fix a regression introduced by #147046 (#150893) Static functions have an implicit object argument during deduction. This fixes an assertion while compiling the devel/corrade port. PR: 292067 MFC after: 1 month --- contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp b/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp index 1b54628c5e5..447d1141e08 100644 --- a/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp +++ b/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp @@ -8042,8 +8042,8 @@ static void AddTemplateOverloadCandidateImmediately( Candidate.IgnoreObjectArgument = isa(Candidate.Function) && - cast(Candidate.Function) - ->isImplicitObjectMemberFunction() && + !cast(Candidate.Function) + ->isExplicitObjectMemberFunction() && !isa(Candidate.Function); Candidate.ExplicitCallArguments = Args.size();