Perhaps we have to deprecate auto? ;-)
 

-----Ursprüngliche Nachricht-----
Von: Ell via Std-Proposals <std-proposals@lists.isocpp.org>

This was discussed on reddit recently [1]. As noted there, the problem
is broader than just dangling references to temporaries. The presence of
unintended references is itself an issue:

   auto [min, max] = std::minmax (x, y); // x and y are lvalues
   std::swap (x, y); // oops, also swaps min and max

I'd be wary of special-casing just the rvalue-argument case.

[1]
https://old.reddit.com/r/cpp/comments/1j2139v/c_creator_calls_for_action_to_address_serious/mfornic/