Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler crash with ctuple as property setter argument #3038

Open
Timtam opened this issue Jul 10, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@Timtam
Copy link

commented Jul 10, 2019

  • Cython version: 0.29.12
  • Compiler used: Visual Studio 2015 (MSVC)
  • Python version: Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)]
    on win32

Following small code example, named crash.pyx:

cdef class Foo:
  property bar:
    def __set__(Foo self, (int, int) value):
      print(value[0], value[1])

Running with python -c "import pyximport;pyximport.install();import crash" cythonizes properly, but compilation crashes:
....pyxbld\temp.win32-3.6\Release\pyrex\crash.c(1286): error C2440: "Typumwandlung": "__pyx_ctuple_int__and_int" kann nicht in "__pyx_ctuple_int__and_int" konvertiert werden
....pyxbld\temp.win32-3.6\Release\pyrex\crash.c(1286): error C2198: "pyx_pf_5crash_3Foo_3bar___set": Nicht gen�gend Argumente f�r Aufruf.

Cythonized crash.c file attached.
Problem is not pyximport-related and also crashes when used "normally".
crash.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.