[Bug tree-optimization/88372] alloc_size attribute is ignored on function pointers

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 14 22:49:00 GMT 2018


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed for GCC 9 in r267158.  A warning when a function without the attribute is
assigned to a pointer with it should also be implemented to help detect bugs
that this might lead to.


More information about the Gcc-bugs mailing list