https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117198
--- Comment #2 from hanwei (K) <hanwei62 at huawei dot com> --- However, if only the weak attribute is declared, warning of redundant redeclaration is generated regardless of the order, and the link:https://godbolt.org/z/e5aY7zYMh