https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63774
--- Comment #2 from Zhendong Su <su at cs dot ucdavis.edu> --- (In reply to Andrew Pinski from comment #1) > This code is undefined as you are returning an address of local variable. Andrew, that's what I was unsure about and thus reported it. Should it actually be implementation defined? Also, all previous versions of the compiler seem to behave more as expected.