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?