[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

Mark Dickinson report at bugs.python.org
Tue Jun 15 14:14:40 EDT 2021


Mark Dickinson <dickinsm at gmail.com> added the comment:

As a test, gcc and clang both seem happy to treat this as valid C.  I think Sphinx is wrong to reject this.

mdickinson at mirzakhani Desktop % cat test.c
typedef struct {
    double real;
    double imag;
} Py_complex;

Py_complex _Py_c_neg(Py_complex complex);
mdickinson at mirzakhani Desktop % gcc -Wall -Wextra -std=c17 -c test.c
mdickinson at mirzakhani Desktop % clang -Wall -Wextra -std=c17 -c test.c
mdickinson at mirzakhani Desktop %

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44426>
_______________________________________


More information about the Python-bugs-list mailing list