[Bug c/19972] -Wreturn-local-addr misses return of local (nested) function pointer

uecker at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 31 22:16:07 GMT 2025


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

uecker at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |uecker at gcc dot gnu.org
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
                 CC|                            |uecker at gcc dot gnu.org

--- Comment #4 from uecker at gcc dot gnu.org ---

This is now fixed on trunk via

https://gcc.gnu.org/cgit/gcc/commit/?id=afa74d37e8170d696f97424da7ab0f71883aac70

https://godbolt.org/z/bsrYq8rze


More information about the Gcc-bugs mailing list