[all-commits] [llvm/llvm-project] 8fa3dc: [clang] reject to capture variable in `RequiresExp...

Congcong Cai via All-commits all-commits at lists.llvm.org
Fri Jan 19 21:46:19 PST 2024


  Branch: refs/heads/users/ccc/69307-clang-ice-when-dealing-with-some-certain-requires-clauses-in-calculateconstraintsatisfaction
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fa3dc43e770025308da47f6aff309fa58c47fc3
      https://github.com/llvm/llvm-project/commit/8fa3dc43e770025308da47f6aff309fa58c47fc3
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-01-20 (Sat, 20 Jan 2024)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/SemaCXX/requires-expression-with-capture-variable.cpp

  Log Message:
  -----------
  [clang] reject to capture variable in `RequiresExprBodyDecl`

Expression in `RequiresExprBodyDecl` is resolved as constants and should not be captured.
Fixes: #69307, #76593.


  Commit: a99f16ff51702ff249cdf8a47de0cf24a08f694a
      https://github.com/llvm/llvm-project/commit/a99f16ff51702ff249cdf8a47de0cf24a08f694a
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-01-20 (Sat, 20 Jan 2024)

  Changed paths:
    A clang/test/SemaCXX/warn-unused-lambda-capture-cxx20.cpp
    M clang/test/SemaCXX/warn-unused-lambda-capture.cpp

  Log Message:
  -----------
  another test


Compare: https://github.com/llvm/llvm-project/compare/33db497c31fd...a99f16ff5170


More information about the All-commits mailing list