[all-commits] [llvm/llvm-project] 505956: [Clang] Use the templated declaration for Diagnose...

Younan Zhang via All-commits all-commits at lists.llvm.org
Sat Oct 4 23:20:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 505956eeb0943461f9f0c10f0cca0da185fa142d
      https://github.com/llvm/llvm-project/commit/505956eeb0943461f9f0c10f0cca0da185fa142d
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2025-10-05 (Sun, 05 Oct 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/Parser/cxx0x-lambda-expressions.cpp
    M clang/test/SemaCXX/diagnose_if.cpp
    M clang/test/SemaCXX/lambda-expressions.cpp

  Log Message:
  -----------
  [Clang] Use the templated declaration for DiagnoseUseOfDecl (#161900)

We missed the check of diagnose_if attributes for the constructor
templates, because we used the template declaration, rather than its
templated one.

Also, we can avoid the duplicate constraint checking because it's
already performed in overload resolution.

There are some diagnostic regressions, all of which are warnings for
uses of lambdas in C++03 mode, which I believe we should still diagnose.

Fixes https://github.com/llvm/llvm-project/issues/160776



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