https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113687

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |56456
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-02-01

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> The warning only happens if the vague linkage function is used. and IIRC
> that is by design.

Yeah, we try to avoid diagnosing things on "dead" code and here the whole
functions are dead.  IIRC even -fanalyzer runs after cgraph removes unreachable
functions.

It would be still nice to diagnose these kind of trivial cases.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
[Bug 56456] [meta-bug] bogus/missing -Warray-bounds

Reply via email to