[clang] [clang] Prevent stack overflow on deeply nested template arguments (PR #224393)

Daniel Petrovic via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 20 03:50:49 PST 2026


daniel-petrovic wrote:

@AaronBallman Thanks for the feedback!

Regarding:
> in general, I think sprinkling runWithSufficientStackSpace in the code base is a band-aid which accrues tech debt for us long-term

I think we all agree on this (myself included in the meanwhile). I actually tried using it as a first-aid in a couple of other places too, though thanks to @zyn0217 's review hints, I was able to find better alternatives there.

In this case, I couldn't find a simple alternative, and the argument that this scenario is too unrealistic to warrant a fix sounds completely reasonable to me. Reverting  this is definitely an option.

I mainly commented today to either move this stalled PR forward or close it out, to help reduce the PR backlog.

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


More information about the cfe-commits mailing list