https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89341
JunMa <JunMa at linux dot alibaba.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |JunMa at linux dot alibaba.com --- Comment #10 from JunMa <JunMa at linux dot alibaba.com> --- I saw same issue with alias attribute. gcc should error out when weakref or alias attribute attached to a definition. I'll send patch and test cases later.