robertwb / issues-import-test

0 stars 0 forks source link

cimported ctuples don’t compile their declaration #106

Open robertwb opened 7 years ago

robertwb commented 7 years ago

Reported by linkmauve on 6 Nov 2015 02:20 UTC When a module imports a declaration containing a ctuple from a pxd, the C declaration for the ctuple will be missing:

a.pyx:

cimport b
b.get_a_ctuple()

b.pxd:

cdef (int, int) get_a_ctuple()

The __pyx_ctuple_int__and_int struct and typedef will then be missing, while if get_a_ctuple had been declared in as module (even in a pxd) it would have been fine.

Migrated-From: http://trac.cython.org/ticket/873