Ticket #441 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Coercing float typedef to complex creates erronous C code

Reported by: dagss Owned by: somebody
Priority: blocker Milestone: 0.12
Component: Code Generation Keywords:
Cc:

Description

This code doesn't C-compile:

ctypedef double mydouble
def test_coerce_typedef_multiply(mydouble x, double complex z):
    return x * z

The problem is that the resulting complex of the multiplication operation is defined before mydouble. I'll post to the ML for discussion.

Testcase for this ticket added on -T305.

Change History

Changed 4 years ago by dagss

  • milestone changed from 0.12 to 0.12.1

Temporarily disabled such coercions. That's rather ugly, especially as the obvious workaround <double complex>foo doesn't work either. Should be rather important for 0.12.1.

 http://hg.cython.org/cython-devel/rev/c6a27fd42d87

Changed 4 years ago by dagss

  • status changed from new to closed
  • resolution set to fixed

Changed 4 years ago by robertwb

  • milestone changed from 0.12.1 to 0.12
Note: See TracTickets for help on using tickets.