[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

Dimitry Andric report at bugs.python.org
Tue Apr 25 17:03:32 EDT 2017


Dimitry Andric added the comment:

STINNER Victor writes:
> Would it be technically possible to completely get ride of the union? 

Probably, it's just more work, and it has to be done pretty carefully to avoid regressions.  It seems Python already does some exercising of these dtoa functions in its test suite, but ideally you would want to check against upstream's full tests, if those exist.

There are probably many edge cases for a set of tricky functions like this...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30124>
_______________________________________


More information about the Python-bugs-list mailing list