[clang] [clang] Fix static local variables in consteval functions (PR #156933)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 10 08:05:16 PDT 2025


Fznamznon wrote:

> That makes sense. I think the cleaner way of handling it is probably to just fit it into the existing lazy-emission system, DeferredDeclsToEmit

I've tried to do that. Thanks for the suggestion.
I also added a test with a self referential initializer, which with the previous patch crashed due to endless recursion.

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


More information about the cfe-commits mailing list