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

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

Closed
robertwb opened this issue Jul 1, 2010 · 1 comment
Closed

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

robertwb opened this issue Jul 1, 2010 · 1 comment

Comments

@robertwb
Copy link
Contributor

robertwb commented Jul 1, 2010

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)

Migrated from http://trac.cython.org/ticket/548

@maxbachmann
Copy link
Contributor

@scoder this is fixed in 3.0.0a10

@da-woods da-woods modified the milestones: wishlist, 3.0 Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants