https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99420
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=99972 --- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- The attributes need to be copied/merged across redeclarations of the same symbol regardless of the scope. See pr99972 for another example where failing to do it causes a false positive.