[clang] [clang][SemaCXX] Add test for stale linkage cache assertion failure (PR #244190)
Macro Terra via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 29 06:23:52 PST 2026
hongtaihu wrote:
Thanks for adding the test! I verified on Clang 23.1.0 (assertions) with `-fsyntax-only` that replacing `__m128` with a plain `int` reproduces the exact same `isLinkageValid()` assertion failure in `Redeclarable<VarDecl>::setPreviousDecl`. Could we simplify it to drop the vector `typedef`?
```cxx
extern const int kAlias;
const int kAlias __attribute__((alias("kOne")));
```
https://godbolt.org/z/fznonn391
cc @shafik
https://github.com/llvm/llvm-project/pull/244190
More information about the cfe-commits
mailing list