[all-commits] [llvm/llvm-project] bfdeb5: [Clang] use constant evaluation context for conste...

Oleksandr T. via All-commits all-commits at lists.llvm.org
Sun Mar 9 16:53:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfdeb5873073ed94b63b1ef1f7e91845c1be88a1
      https://github.com/llvm/llvm-project/commit/bfdeb5873073ed94b63b1ef1f7e91845c1be88a1
  Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseExprCXX.cpp
    A clang/test/SemaCXX/constexpr-if.cpp

  Log Message:
  -----------
  [Clang] use constant evaluation context for constexpr if conditions (#123667)

Fixes #123524

---

This PR addresses the issue of immediate function expressions not
properly evaluated in `constexpr` if conditions. Adding the
`ConstantEvaluated` context for expressions in `constexpr` if statements
ensures that these expressions are treated as manifestly
constant-evaluated and parsed correctly.



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