Landing: 9b0341a7a6a3

Project / Subsystem

gcc / c++

Date

2026-08-14

Author

Patrick Palka

Commit

9b0341a7a6a38912e667982003bcbfebdfb86335

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
9b0341a7a6a38912e667982003bcbfebdfb86335
source_type
github
headline
Add test variants for is_constant_evaluated.
tldr
New C++ test cases added to verify `is_constant_evaluated` behavior in various scopes.
author
Patrick Palka
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • testsuite
  • • constexpr
discussion_id_link
—
bugzilla_pr
—
date
2026-08-14T00:00:00.000Z

This commit introduces two new variants (is_constant_evaluated3a.C and is_constant_evaluated3b.C) of an existing test case. These variants are designed to specifically test the behavior of is_constant_evaluated within constexpr function scopes and maybe-constexpr lambda scopes, respectively. They help uncover and verify fixes for issues related to constant folding in different evaluation contexts.