Opened 7 years ago

Last modified 5 years ago

#340 new defect

Problem with buffer/memview parsing strategy

Reported by: dagss Owned by: somebody
Priority: major Milestone: wishlist
Component: Parsing Keywords: kurtgsoc


gsoc-kurt branch

In 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.

Change History (3)

comment:1 Changed 7 years ago by dagss

Adding tests to TestMemView? ensuring that cdef foo(int[]) as well as sizeof(int[4]) still works would be good too.

comment:2 Changed 7 years ago by dagss

  • Component changed from Build System to Parsing

comment:3 Changed 5 years ago by scoder

  • Milestone changed from 1.0 to wishlist

Also see #177, #180.

Note: See TracTickets for help on using tickets.