Bonita Montero
2024-10-06 16:22:15 UTC
g++ 14 has a new feature which that warns when a return value
optimization / copy elision doesn't take place. Here's my example:
https://godbolt.org/z/G8Eh1hrsd
As you can see the compiler warns twice - but moves according to
the program output nevertheless. Is this a bug ?
optimization / copy elision doesn't take place. Here's my example:
https://godbolt.org/z/G8Eh1hrsd
As you can see the compiler warns twice - but moves according to
the program output nevertheless. Is this a bug ?