[Bug c++/61597] Unexpected behavior at runtime
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 25 16:56:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61597
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Last reconfirmed|2014-06-24 00:00:00 |2014-06-25
CC| |manu at gcc dot gnu.org
Resolution|INVALID |---
Ever confirmed|0 |1
--- Comment #18 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #17)
> And if func is inline,
> it will require -fkeep-inline-functions.
What is the difference between inline/not inline?
> e.cc: In function 'Iter& func(Iter, int)':
> e.cc:11:20: warning: function returns address of local variable
> [-Wreturn-local-addr]
> return iter += n;
> ^
Why it points to n?
More information about the Gcc-bugs
mailing list