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

Congcong Cai via All-commits all-commits at lists.llvm.org
Thu Jan 18 07:15:44 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: 33db497c31fd9da3a3acfc0d419dcdc396752863
      https://github.com/llvm/llvm-project/commit/33db497c31fd9da3a3acfc0d419dcdc396752863
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-01-18 (Thu, 18 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.




More information about the All-commits mailing list