https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70121
--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> --- But as Jason said in comment #4, (IIUC) the test case never compiled correctly in any gcc version. It was marked a regression only because -Wreturn-local-addr now deliberately returns null but arguably that's not a regression either.