Troubleshooting a Crash Triggered by Clang Compiler Optimization
DZone
DECEMBER 23, 2020
If someone told you that the following C++ function would cause the program to crash, what would you think it is that caused the problem? C++. xxxxxxxxxx. 1. 1. std::string b2s ( bool b ) {. 2. return b ? "true" : "false" ; 3. }.
Let's personalize your content