• Gerald Dalley's avatar
    Fixed IndexNode.is_lvalue · bcba9251
    Gerald Dalley authored
    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
    bcba9251
lvalue_refs.pyx 595 Bytes