[Bug c/99420] [11 Regression] bogus -Warray-parameter on a function redeclaration in function scope

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 8 16:48:59 GMT 2021


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.


More information about the Gcc-bugs mailing list