[issue33575] Python relies on C undefined behavior float-cast-overflow

2018-05-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: You might want to have a look at #20941. Arguably ubsan is too pendantic in some of these cases. -- nosy: +benjamin.peterson ___ Python tracker __

[issue33575] Python relies on C undefined behavior float-cast-overflow

2018-05-18 Thread Gregory P. Smith
New submission from Gregory P. Smith : Clang's undefined behavior sanitizer is flagging several places in CPython where it is relying on float-cast-overflow behavior. Typically exposed where an out of bounds floating point value is cast to another type. The clang compiler is about to start ap