Clang's tautological-constant-out-of-range-compare warnings seem broken. It'll warn on enum values, even though they could have casted...
@cmuratori Ie., if you have a out-of-range enum value casted to the enum type, a later check against the valid enum range will fail.
-
-
@cmuratori But clang will warn you about that comparison as if it couldn't possibly happen, when it totes could y'all! -
@cmuratori Is casting an out of range value to enum actually legal/defined behavior? - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.