This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61597] Unexpected behavior at runtime
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jun 2014 10:03:27 +0000
- Subject: [Bug c++/61597] Unexpected behavior at runtime
- Auto-submitted: auto-generated
- References: <bug-61597-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61597
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
decltype(iter += i) is Iter& so you return a reference to a temporary which
goes out of scope