https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That is c++17 requires Copy elision here while c++14 does not.
pinskia at gcc dot gnu.org via Gcc-bugs Sat, 29 Jan 2022 09:12:56 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That is c++17 requires Copy elision here while c++14 does not.