[Bug middle-end/63774] wrong code at all optimization levels on x86_64-linux-gnu

su at cs dot ucdavis.edu gcc-bugzilla@gcc.gnu.org
Fri Nov 7 17:49:00 GMT 2014


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.



More information about the Gcc-bugs mailing list