-
-
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
GC.@preserve does not work within a macro in Julia 1.4 #35391
Labels
Comments
Reduced a little: macro a(b)
:(GC.@preserve ($(esc(b)),) )
end
@a 0 |
Unrelated to this issue but for the record the use of go preserve here is wrong. You never need to preserve a pointer, you preserve the owner of it. |
Also the 1.3 output certainly looks wrong. |
JeffBezanson
added
macros
@macros
regression
Regression in behavior compared to a previous version
labels
Apr 7, 2020
JeffBezanson
added a commit
that referenced
this issue
Apr 7, 2020
JeffBezanson
added a commit
that referenced
this issue
Apr 8, 2020
KristofferC
pushed a commit
that referenced
this issue
Apr 10, 2020
ztultrebor
pushed a commit
to ztultrebor/julia
that referenced
this issue
Apr 17, 2020
staticfloat
pushed a commit
that referenced
this issue
Apr 21, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
As noted on Julia Slack #internals - https://julialang.slack.com/archives/C688QKS7Q/p1586239098050400.
Macro which used to work pre Julia-1.4 stopped working. Setting aside the useless invocation of
GC.@preserve
:@macroexpand
result is different to 1.3 - doesn’t expand theGC.@preserve
call which “loses”v
1.4:
1.3:
Haven't dug deeper but seems like this shouldn't have broken.
The text was updated successfully, but these errors were encountered: