https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637
--- Comment #4 from Thomas Braun <thomas.br...@virtuell-zuhause.de> --- (I'm no gcc dev at all) In general gcc is much better in doing NRVO/URVO than other compilers according to my analysis [1]. So maybe the competitors need to get better first ;) [1]: http://www.byte-physics.de/cpp-copy-elision