This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients docs@python, ksurma, mark.dickinson
Date 2021-06-15.18:14:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623780880.75.0.47352477206.issue44426@roundup.psfhosted.org>
In-reply-to
Content
As a test, gcc and clang both seem happy to treat this as valid C.  I think Sphinx is wrong to reject this.

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

Py_complex _Py_c_neg(Py_complex complex);
mdickinson@mirzakhani Desktop % gcc -Wall -Wextra -std=c17 -c test.c
mdickinson@mirzakhani Desktop % clang -Wall -Wextra -std=c17 -c test.c
mdickinson@mirzakhani Desktop %
History
Date User Action Args
2021-06-15 18:14:40mark.dickinsonsetrecipients: + mark.dickinson, docs@python, ksurma
2021-06-15 18:14:40mark.dickinsonsetmessageid: <1623780880.75.0.47352477206.issue44426@roundup.psfhosted.org>
2021-06-15 18:14:40mark.dickinsonlinkissue44426 messages
2021-06-15 18:14:40mark.dickinsoncreate