[clang] [Clang][CodeGen] Fix crash on value-dependent initializer during error recovery (PR #181561)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 15 20:27:01 PST 2026


zwuis wrote:

This is not the right fix. This initializer should not be value-dependent. If you change a part of reproducer to

```cpp
template <auto>
struct MetaValuesHelper;

template <typename TupleName, TupleName* kValues>
struct MetaValuesHelper<kValues> {
```

, the code becomes valid but Clang still crashes.

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


More information about the cfe-commits mailing list