[clang] [clang][sema][wat] peek through expansion statements to try and fix weird decl problems (PR #211745)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 24 07:23:24 PDT 2026


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

----------------
Sirraide wrote:

Seeing this comment, could you add this a sa test:
```c++
void foo() {
  template for (auto x : {1, 2}) {
    template for (auto x : {1, 2}) { decltype(x) bar(); }
  }
}
```

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


More information about the cfe-commits mailing list