Re: [Cython] Bug in C code generation

2014-05-07 Thread Stefan Behnel
Ulf Worsoe, 30.04.2014 12:45: > I have encounterered a bug in the following situation with Cython 0.20.1: > > cdef funname(): > cdef numpy.ndarray[numpy.int32_t,ndim=1] myvar > if True: > ... block that never initializes myvar > else > ... block that initializes myvar > > The result

[Cython] Bug in C code generation

2014-04-30 Thread Ulf Worsoe
Hi, I have encounterered a bug in the following situation with Cython 0.20.1: cdef funname(): cdef numpy.ndarray[numpy.int32_t,ndim=1] myvar if True: ... block that never initializes myvar else ... block that initializes myvar The resulting C code does not declare the variable for