Fixed IndexNode.is_lvalue
In C/C++, almost all index operator expressions return lvalues. We now allow anything that doesn't look like it resolves to assigning to a whole array object to be considered an lvalue. Before this commit, using the index operator on containers that return references would crash the Cython compiler. run/tests/lvalue_refs.pyx contains an example of code that previously crashed the compiler. Author: Gerald Dalley
Showing
tests/run/lvalue_refs.pyx
0 → 100644
Please register or sign in to comment