https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109801
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note in GCC 13 and above we give an extra warning too: <source>: In function 'int main()': <source>:30:49: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] 30 | table<int> container(std::move(table<int>())); | ^ <source>:30:49: note: remove 'std::move' call