News for hackers. Stuff that matters.
Re:“It is never a compiler error” by revelation on Tuesday November 14, 2017 @07:46PM (#15700630)
UBSan catches undefined behavior at runtime - so by definition everything it reports was not used by Clang to fold your program to a constant.
Re:“It is never a compiler error” by gpderetta on Tuesday November 14, 2017 @07:51PM (#15700660)
When the sanitizer is on, the optimizer (modulo bugs of course) does not remove the checks.