[all-commits] [llvm/llvm-project] 49666e: [Clang] Fix constant evaluating a captured variabl...

cor3ntin via All-commits all-commits at lists.llvm.org
Thu Oct 5 01:18:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49666ec0386174b9fcf637560951b8ee29ca82c7
      https://github.com/llvm/llvm-project/commit/49666ec0386174b9fcf637560951b8ee29ca82c7
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2023-10-05 (Thu, 05 Oct 2023)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/cxx2b-deducing-this-constexpr.cpp

  Log Message:
  -----------
  [Clang] Fix constant evaluating a captured variable in a lambda (#68090)

with an explicit parameter.

We tried to read a pointer to a non-existent `This` APValue when
constant-evaluating an explicit object lambda call operator (the `this`
pointer is never set in explicit object member functions)

Fixes #68070




More information about the All-commits mailing list