Repository navigation
gh-158810: Fix Py_ARRAY_LENGTH() macro on C++ - #158812
Conversation
|
I tested manually that the added test fails without the fix with g++ 16.2.1 (on Fedora 44): |
|
I will backport the change to stable branches once the 3.15 branch will be unlocked (next week). I should first backport the test_cext refactoring which merged C and C++ tests in test_cext (remove test_cppext). |
|
Ah, 3 tests build C extensions failed: Example of error: |
|
I wrote PR #158838 to fix the "extension used" error. |
* gh-158810: Fix Py_ARRAY_LENGTH() macro on C++ (#158812) (cherry picked from commit b2bfbce) * gh-158810: Use _Py_TYPEOF in Py_ARRAY_LENGTH() (#158838) Fix the compiler warning "extension used" when building test_cext with clang. * test_cext no longer overrides the CC environment variable if it's already defined. * test_cext now also logs __STRICT_ANSI__ macro. (cherry picked from commit 85c03d4) * Add Py_SETREF/XSETREF tests to test_cext
* [3.15] gh-158810: Fix Py_ARRAY_LENGTH() macro on C++ (#159315) * gh-158810: Fix Py_ARRAY_LENGTH() macro on C++ (#158812) (cherry picked from commit b2bfbce) * gh-158810: Use _Py_TYPEOF in Py_ARRAY_LENGTH() (#158838) Fix the compiler warning "extension used" when building test_cext with clang. * test_cext no longer overrides the CC environment variable if it's already defined. * test_cext now also logs __STRICT_ANSI__ macro. (cherry picked from commit 85c03d4) * Add Py_SETREF/XSETREF tests to test_cext (cherry picked from commit 152185f) * Backport Py_CLEAR/Py_SETREF/Py_XSETREF from main
Uh oh!
There was an error while loading. Please reload this page.