Ticket #340 (new defect)

Opened 5 years ago

Last modified 4 years ago

Problem with buffer/memview parsing strategy

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

Description

gsoc-kurt branch

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.

Change History

Changed 5 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.

Changed 5 years ago by dagss

  • component changed from Build System to Parsing

Changed 4 years ago by scoder

  • milestone changed from 1.0 to wishlist

Also see #177, #180.

Note: See TracTickets for help on using tickets.