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

Macros: Can't esc names in global assignments #24289

Closed
fcard opened this issue Oct 23, 2017 · 0 comments
Closed

Macros: Can't esc names in global assignments #24289

fcard opened this issue Oct 23, 2017 · 0 comments
Assignees
Labels
macros @macros regression Regression in behavior compared to a previous version

Comments

@fcard
Copy link
Contributor

fcard commented Oct 23, 2017

macro m()
  :(global $(esc(:x)) = 1)
end
julia> @m
ERROR: syntax: malformed expression
julia> @macroexpand @m

signal (11): Segmentation fault
in expression starting at no file:0
htable_new at /home/fabio/Source/Git/Languages/julia/src/support/htable.c:34
builtin_arg_counts at /home/fabio/Source/Git/Languages/julia/usr/bin/../lib/libjulia.so.0.7 (unknown line)
Allocations: 684912 (Pool: 684701; Big: 211); GC: 0
[1]    6419 segmentation fault  julia

0.7.0-DEV.2278
Works in 0.7.0-DEV.369


Crossref JuliaGraphics/Gtk.jl#324

@JeffBezanson JeffBezanson self-assigned this Oct 23, 2017
@JeffBezanson JeffBezanson added macros @macros regression Regression in behavior compared to a previous version labels Oct 23, 2017
JeffBezanson added a commit that referenced this issue Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros @macros regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

2 participants