Copy elision does not take place under certain conditions where it is a perfectly valid optimization step. I understand of course that copy elision is not a requirement by the standard, but I think we would all agree that it is a huge boon. And since the Visual Studio C++ compiler obviously implements it, I have to assume that it is a bug if, under certain qualifying conditions, it does not occur.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Operating System Language