[all-commits] [llvm/llvm-project] fb04e8: [clang] Improved diagnostics for explicit speciali...

StefanPaulet via All-commits all-commits at lists.llvm.org
Fri May 8 07:12:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb04e8fbb5db10d3dedffbafa86d2b24234123cf
      https://github.com/llvm/llvm-project/commit/fb04e8fbb5db10d3dedffbafa86d2b24234123cf
  Author: StefanPaulet <65234821+StefanPaulet at users.noreply.github.com>
  Date:   2026-05-08 (Fri, 08 May 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/CXX/drs/cwg17xx.cpp
    M clang/test/SemaCXX/lambda-expressions.cpp

  Log Message:
  -----------
  [clang] Improved diagnostics for explicit specialization/instantiation of closure type members (#192843)

Follow-up from #191419:
- Added separate diagnostics for explicit instantiation and explicit
specialization of a closure type member.
- Diagnostic for explicit instantiation is now issued at the point of
instantiation and not at the lambda declaration.
- Added note with `defined here` pointing to lambda declaration for both
diagnostics.

---------

Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav 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