Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Assignment to reference" bug reintroduced in Cython 0.26.x #1863
A bug was introduced in Cython 0.18 that caused code like this to fail
with an "Assignment to reference" error. See https://groups.google.com/d/msg/cython-users/j58Sp3QMrD4/y9vJy9YBi_kJ The bug was fixed and code like that worked through Cython 0.25.2. I just tried Cython 0.26.1 and the bug has reappeared.
As before, the workaround is to upgrade the reference parameter to a full pointer then dereference it: