https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66699
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't see why you think this is an issue because: f(temp(), temp()); The C++ does not specifies which one gets constructed first or second.