https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64463
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- I created the very similar PR 86879 for the C++ front-end (it also covers an additional case, where a function returns a reference and the address is compared to null).