New submission from Joshua J Cogliati:
The attached example works fine with Python 3.4.2, but fails with Python
3.5.0a1 and 3.5.0a2
I am using:
$ g++ --version
g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
$ swig -version
SWIG Version 3.0.5
Compiled with g++ [x86_64-redhat-linux-gnu]
STINNER Victor added the comment:
The problem is more general than Python: #include stdatomic.h fails in C++.
Try to compiled atomic.cpp with g++, you will get the same error.
The following bug report in the glibc has been closed as WONTFIX:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932
Roundup Robot added the comment:
New changeset eb48295e1f8b by Victor Stinner in branch 'default':
Issue #23644, #22038: Move #include stdatomic.c inside the extern C { ... }
https://hg.python.org/cpython/rev/eb48295e1f8b
--
nosy: +python-dev
___
Joshua J Cogliati added the comment:
I have:
/local/python_fix/include/python3.5m/pyatomic.h
#ifndef Py_LIMITED_API
#ifndef Py_ATOMIC_H
#define Py_ATOMIC_H
#include dynamic_annotations.h
#include pyconfig.h
#ifdef __cplusplus
extern C {
#endif
#if defined(HAVE_STD_ATOMIC)
#include
STINNER Victor added the comment:
_Atomic was added by the issue #22038.
--
nosy: +gustavotemple, haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23644
___
STINNER Victor added the comment:
Can you please try with the latest development version?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23644
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +Vitor.de.Lima
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23644
___
___
Gustavo Frederico Temple Pedrosa added the comment:
@haypo, @lbianc will investigate this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23644
___
Changes by Leonardo Bianconi leonardo.bianc...@eldorado.org.br:
--
nosy: +lbianc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23644
___
___