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

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 09:49:26 PDT 2026


================

----------------
zwuis wrote:

The `runWithSufficientStackSpace` covers too much code.

Currently:

```cpp
runWithSufficientStackSpace(... {
  // unrelated code

  // code causing stack overflow

  // unrelated code
})
```

Expected:

```cpp
// unrelated code

runWithSufficientStackSpace(... {
  // code causing stack overflow
})

// unrelated code
```

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


More information about the cfe-commits mailing list