[all-commits] [llvm/llvm-project] bc9313: [Clang] Implement CWG2517 Useless restriction on u...

Imad Aldij via All-commits all-commits at lists.llvm.org
Sat Jun 7 02:31:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc931318a2880360f3970e1e6906adc9c90eb698
      https://github.com/llvm/llvm-project/commit/bc931318a2880360f3970e1e6906adc9c90eb698
  Author: Imad Aldij <os at imadij.com>
  Date:   2025-06-07 (Sat, 07 Jun 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/CXX/drs/cwg25xx.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.req/nested-requirement.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.req/simple-requirement.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (#132919)

Remove `[expr.prim.req.nested]` check which restrict that local
parameters in constraint-expressions can only appear as unevaluated
operands. This change makes the treatment of examples like `requires`
expressions and other constant expression contexts uniform, consistent
with the adoption of P2280.

References: https://cplusplus.github.io/CWG/issues/2517.html
Fixes  #132825

---------

Co-authored-by: cor3ntin <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