https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90737
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, wrong-code
Known to work| |4.9.4
Blocks| |90556
Summary|wrong code returning |[8/9/10 Regression]
|address of a local |inconsistent address of a
|converted to intptr_t |local converted to intptr_t
| |between callee and caller
Known to fail| |10.0, 5.1.0, 6.4.0, 7.3.0,
| |8.2.0, 9.1.0
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning for this code goes at least as far back as GCC 4.1. The
inconsistency between the callee and the caller started in GCC 4.9.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90556
[Bug 90556] [meta-bug] bogus/missing -Wreturn-local-addr