Issue |
130260
|
Summary |
[clang++] missing an RVO opportunity
|
Labels |
clang
|
Assignees |
|
Reporter |
ByunghoonKim
|
I just read a new Raymond Chen's article, [How can I choose a different C++ constructor at runtime?](https://devblogs.microsoft.com/oldnewthing/20250306-00/?p=110942), and tested it. It seems `clang` does not recognize the pattern described in the article, while both `gcc` and `MSVC` perform RVO.
Compiler Explorer [link](https://compiler-explorer.com/z/nEo4rTobY)
Can you verify if this is a bug or not?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs