https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108407
--- Comment #4 from Matthias Möller ---
Thank you, I have changed the code as suggested and it compiles and runs fine
in all optimization levels including '-O0'.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108407
--- Comment #3 from Andrew Pinski ---
If you do:
return std::tuple(a,b);
You don't get the reference.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108407
--- Comment #2 from Andrew Pinski ---
> return std::tie(a,b);
That returns a reference to the two local variables. Both have now gone out of
scope.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108407
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED