[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
STINNER Victor
report at bugs.python.org
Tue Mar 29 09:39:30 EDT 2022
STINNER Victor <vstinner at python.org> added the comment:
The C++20 "module" keyword is "contextual keyword". It's only a keyword if the first line if a file contains "module".
* https://en.cppreference.com/w/cpp/language/modules#Module_declarations
* https://en.cppreference.com/w/cpp/keyword/module
It's not the case in any .h file of the Python C API, so Python doesn't need to be changed. I close the issue.
----------
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39355>
_______________________________________
More information about the Python-bugs-list
mailing list