Ticket #548 (new defect)

Opened 4 years ago

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

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

Description

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
    t.push_back(x)
Note: See TracTickets for help on using tickets.