|
|
|
|
|
by kbeckmann
3218 days ago
|
|
With clang you can enable run time UB checks using the -fsanitize=undefined flag[0]. But in this case, the sanitizer doesn't detect undefined behavior. I tried to build the example (and changing the system to an echo) using "clang a.cpp -o a -Os -std=c++11 -lstdc++ -fsanitize=undefined", but the sanitizer didn't detect the UB. [0] https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html |
|