[clang] [Clang] Improve error recovery for invalid alias templates (PR #235456)

Chen Miao via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 06:40:17 PDT 2026


https://github.com/ChenMiaoi commented:

I don’t think this provides a general fix. Class-head attributes are parsed before `ActOnTagStartDefinition` invalidates the alias template parameters. For example:

``` cc
template <class T>
using A = struct alignas(sizeof(T)) B {};
```



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


More information about the cfe-commits mailing list