-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
jl_value_ptr function and '&' operator errror on Windows #2850
Comments
I can confirm that this code works on MacOS 10.7.5 and on Debian GNU/Linux (x86_64) with commit b66fcaa, so this seems to be a Windows-specific problem. |
cc @loladiro @vtjnash |
ah, jl_value_ptr is a special intrinsic function and is not supposed to be used like that. It's only supposed to be called through the pointer_from_objref function. the error detected on windows is correct. |
This has nothing to do with jl_value_ptr (which is just an identity function, not an intrinsic last I checked, and gets no special treatment in ccall as far as I can tell). The error occurs in the parser before any function is called. |
ccall tries to inline that function (jl_value_ptr) -- but it is currently broken/disabled |
I see,
My inclination would be to remove this code, and just add a The underlying issue is that Right now, PyCall is using |
I see it is also causing this test to fail: |
This error came out on the tread
https://groups.google.com/forum/?fromgroups=#!topic/julia-dev/-w5SRAMNSmU
and can be resumed in
Apparently this occurs only on Windows. It did with
Version 0.2.0
Commit e912b26
[pao: formatting]
The text was updated successfully, but these errors were encountered: