Clang 7 detects implicit integer truncation at runtime
engineeringcclangsanitizersintegersClang 7 adds a sanitizer for implicit integer conversions that lose data. It catches suspicious behavior that the C language can permit and that undefined-behavior checks therefore do not include by default.