This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/83860] valarray replacement type breaks with auto and more than one operation
- 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: Fri, 06 Apr 2018 10:49:49 +0000
- Subject: [Bug libstdc++/83860] valarray replacement type breaks with auto and more than one operation
- Auto-submitted: auto-generated
- References: <bug-83860-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83860
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. compiling with -fstack-reuse=none will prevent the optimizer from reusing
the stack space immediately, so the dangling references can still be used to
access the temporaries after their lifetime ends.