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

fix #28833, crash in macros returning certain top-level forms #28882

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

JeffBezanson
Copy link
Member

No description provided.

@JeffBezanson JeffBezanson added compiler:lowering Syntax lowering (compiler front end, 2nd stage) bugfix This change fixes an existing bug macros @macros backport pending 1.0 labels Aug 24, 2018
@KristofferC KristofferC mentioned this pull request Aug 24, 2018
src/toplevel.c Outdated
}
assert(jl_is_symbol(gs));
jl_get_binding_wr(gm, gs, 0);
jl_sym_t *gs = (jl_sym_t*)jl_exprarg(ex, i);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're at it, I don't think we should allow code like this anymore (saying something is a jl_sym_t, when we expect it might be a global ref. Ideally use a jl_value_t here and cast to symbol after the assert.

@JeffBezanson JeffBezanson merged commit e5cc750 into master Sep 6, 2018
@JeffBezanson JeffBezanson deleted the jb/fix28833 branch September 6, 2018 16:04
KristofferC pushed a commit that referenced this pull request Sep 6, 2018
KristofferC pushed a commit that referenced this pull request Sep 8, 2018
KristofferC pushed a commit that referenced this pull request Sep 8, 2018
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:lowering Syntax lowering (compiler front end, 2nd stage) macros @macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants