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

ensure user-structs get the correct method table #33424

Closed
wants to merge 1 commit into from
Closed

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Sep 30, 2019

Use a different mechanism to detect front-end generated temporaries which should be reliable
instead of a hack.

fix #33370

Use a different mechanism to detect front-end generated temporaries which should be reliable
instead of a hack.

fix #33370
@@ -144,7 +141,11 @@ static void eval_abstracttype(jl_expr_t *ex, interpreter_state *s)
name = (jl_value_t*)jl_globalref_name(name);
}
assert(jl_is_symbol(name));
dt = jl_new_abstracttype(name, modu, NULL, (jl_svec_t*)para);
if (jl_is_globalref(args[2])) {
Copy link
Member

Choose a reason for hiding this comment

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

I think this is a little too unpredictable, since it can change e.g. based on whether the definition came from a macro.

@vtjnash vtjnash closed this Sep 30, 2019
@DilumAluthge DilumAluthge deleted the jn/33370 branch March 25, 2021 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreachable reached (illegal instruction) in SimJulia on 1.3
3 participants