[all-commits] [llvm/llvm-project] c872a6: [clang] Add diagnostic for friend declaration of c...

StefanPaulet via All-commits all-commits at lists.llvm.org
Fri Apr 17 04:41:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c872a64173f75e0285b44ffb27fd771ea3383f20
      https://github.com/llvm/llvm-project/commit/c872a64173f75e0285b44ffb27fd771ea3383f20
  Author: StefanPaulet <65234821+StefanPaulet at users.noreply.github.com>
  Date:   2026-04-17 (Fri, 17 Apr 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/CXX/drs/cwg17xx.cpp
    M clang/test/SemaCXX/cxx1z-constexpr-lambdas.cpp
    M clang/test/SemaCXX/lambda-expressions.cpp
    M clang/test/SemaTemplate/GH75426.cpp
    M clang/test/SemaTemplate/concepts.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [clang] Add diagnostic for friend declaration of closure type member (#191419)

Clang allows friend declarations of closure type members, which is
disallowed per CWG 1780 (Issue #26540).

Added a new diagnostic when the friend declaration targets a member of a
`CXXRecordDecl` that is a lambda.

---------

Co-authored-by: Corentin Jabot <corentinjabot at gmail.com>



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