[clang] [Clang] Avoid assertion failure for initialized extern aliases (PR #223124)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 23 06:29:46 PDT 2026
================
@@ -36,3 +36,6 @@ int a10() __attribute__((weakref ("foo")));
static int v __attribute__((weakref(a1), alias("foo"))); // expected-error {{expected string literal as argument of 'weakref' attribute}}
__attribute__((weakref ("foo"))) auto a11 = 1; // expected-error {{weakref declaration must have internal linkage}}
+// expected-error at -1 {{definition 'a11' cannot also be an alias}}
----------------
AaronBallman wrote:
Separately is fine by me, I expect this to be a pretty rare failure mode.
https://github.com/llvm/llvm-project/pull/223124
More information about the cfe-commits
mailing list