[clang] [Clang] Handle consteval expression in array bounds expressions (PR #66222)

Takuya Shimizu via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 04:50:44 PDT 2023


hazohelet wrote:

> I'll add a test. immediate contexts are recursive, constant evaluated contexts are not, i don't think there is a case where you would get an additional evaluation context that is not for a full expression, and if you have a full expression you do expect the immediate invocation to be called anyway - eg, lambda case.

It turns out I was misunderstanding the standard about the recursiveness of constant-evaluated-context. I found a flaw in my patch that comes from it (pushing constant-evaluated context upon lambda body if it happens in constant-evaluated context). Thanks!

https://github.com/llvm/llvm-project/pull/66222


More information about the cfe-commits mailing list