Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 23:02:03 +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: 4f6254a7d790 - stable/15 - Merge commit 924f773f5e26 from llvm git (by Younan Zhang):
Message-ID:  <6a1a1aeb.42421.622f10d@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=4f6254a7d79018c414644c63583c3c7f13271d1d

commit 4f6254a7d79018c414644c63583c3c7f13271d1d
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-02-10 19:54:38 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-05-29 22:57:32 +0000

    Merge commit 924f773f5e26 from llvm git (by Younan Zhang):
    
      [Clang] Don't diagnose missing members when looking at the instantiating class template (#180725)
    
      The perfect matching patch revealed another bug where recursive
      instantiations could lead to the escape of SFINAE errors, as shown in
      the issue.
    
      Fixes https://github.com/llvm/llvm-project/issues/179118
    
    This fixes compile errors in the www/qt5-webengine port.
    
    PR:             292067
    MFC after:      1 month
    
    (cherry picked from commit 3fd796204fe6aa2e8a2b70bb9ea95f7497247fa3)
---
 contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp b/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
index 5421e9562c8b..ae86c4ce670d 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
@@ -2934,7 +2934,7 @@ ExprResult Sema::BuildQualifiedDeclarationNameExpr(
     // members were likely supposed to be inherited.
     DeclContext *DC = computeDeclContext(SS);
     if (const auto *CD = dyn_cast<CXXRecordDecl>(DC))
-      if (CD->isInvalidDecl())
+      if (CD->isInvalidDecl() || CD->isBeingDefined())
         return ExprError();
     Diag(NameInfo.getLoc(), diag::err_no_member)
       << NameInfo.getName() << DC << SS.getRange();


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1a1aeb.42421.622f10d>