Opened 6 years ago

#548 new defect

Wrong code generated for type-casting to C++ reference

Reported by: haoyu Owned by: somebody
Priority: major Milestone: wishlist
Component: Code Generation Keywords:


The following Cython code will compile to invalid C++ code. GCC reports " error: ‘pyx_t_1’ declared as reference but not initialized".

from libcpp.vector cimport vector

def bar(x):
    cdef vector[double] t

Change History (0)

Note: See TracTickets for help on using tickets.