-
-
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
Illegal instruction in Julia 1.0.0/1.1.0 (but not in 0.7.0) #29468
Comments
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.1.0-DEV.365 (2018-10-02)
_/ |\__'_|_|_|\__'_| | jb/fix29269/67c5f6e317 (fork: 4 commits, 0 days)
|__/ |
@JeffBezanson this still runs into the error even on your branch (I merged master into the branch, just in case that messes things up?) |
I checked 0.7 as well:
|
dissected it to this type-intersection bug: julia> struct A{N}; end;
julia> typeintersect(Tuple{Vararg{A{N}, N}} where N,
Tuple{A{2}, Vararg{A{2}}})
Union{} # bad
julia> typeintersect(Tuple{Vararg{A{N}, N}} where N,
Tuple{Vararg{A{2}}})
Tuple{A{2}, A{2}} # more correct Unrelated to the crash, I also noticed that the given second answer is actually wrong also. The correct answer is: Union{Tuple{}, Tuple{A{2}, A{2}}} since |
(note this worked / didn't crash in v0.7 because we inhibited inference of the deprecated construct-to-convert method signature, and not a new type system or dispatch regression). |
(Initially posted in QuantEcon/GameTheory.jl#92)
Apologies if already known, but the following code leads to "Illegal instruction: 4" with Julia 1.0.0 and 1.1.0 (Nightly), but not with 0.7.0:
The text was updated successfully, but these errors were encountered: