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

Mark Dickinson report at bugs.python.org
Fri Apr 21 08:26:13 EDT 2017


Mark Dickinson added the comment:

dtoa.c *does* (arguably) respect C99+TC3 strict aliasing. The union trick has long been used as a safe and supported way to do this kind of thing, though it appears there's still disagreement about exactly what the standard intends.

I'd strongly prefer not to modify dtoa.c here unless we really have to.

----------

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


More information about the Python-bugs-list mailing list