Ticket #340 (new defect)
Problem with buffer/memview parsing strategy
|Reported by:||dagss||Owned by:||somebody|
In Parsing.py it says:
# (This means that buffers/memviews cannot occur where there can be empty # declarators, which is an ok restriction to make.)
However, this may not be the case. Empty declarators can occur in cdef functions, like in this extern case:
cdef extern foo(int)
Hence, current parsing code don't understand
cdef foo(int[:]): ...
I've updated TestMemView?.py with a testcase that highlights the problem. A likely fix involves not depending on (or better set) nonempty in p_c_simple_base_type.