[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:46:54 EDT 2017


Mark Dickinson added the comment:

And the basic rule that bans aliasing in the first place is C99 6.5p7:
"""
An object shall have its stored value accessed only by an lvalue expression that has one of the following types ...
"""
But I'd argue that the "an aggregate or union type" subclause of 6.5p7 covers this case.

----------

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


More information about the Python-bugs-list mailing list