Andreas Schneider added the comment:
I forgot, for detecting alignment issues or strict aliasing and this also falls
under strict aliasing, you need to turn on optimizations.
clang -O2 -Werror -Wcast-align ...
--
___
Python tracker
<ht
Andreas Schneider added the comment:
clang -Werror -Wcast-align ...
rpm -q clang9
clang9-9.0.1-8.1.x86_64
Does that help? Found in CI of
https://gitlab.com/cwrap/pam_wrapper
--
___
Python tracker
<https://bugs.python.org/issue40
Change by Andreas Schneider :
--
type: -> compile error
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue40052>
___
___
Python-bugs-lis
New submission from Andreas Schneider :
In file included from /builds/cryptomilk/pam_wrapper/src/python/pypamtest.c:21:
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error
Andreas Schneider added the comment:
And how do you deal with METH_VARARGS|METH_KEYWORDS functions which have 3
arguments?
PyObject* myfunc(PyObject *py_obj, PyObject *args, PyObject *kwargs)
--
___
Python tracker
<https://bugs.python.
Andreas Schneider added the comment:
Looking at:
https://github.com/python/cpython/commit/359a2f3daba49fde0d3a07fb3c7a8b051c450d08
This is not fixing the underlying issue but hiding it. The right fix would be
to use a union for ml_meth providing members for the 3 different function. So
the