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 crash when interpreting optimized top-level expressions #29217

Merged
merged 2 commits into from
Sep 26, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into jb/interp_crashfix
JeffBezanson authored Sep 18, 2018

Verified

This commit was signed with the committer’s verified signature.
commit 0888b9e7ec3c9fecdf8e23deb637a356e6c3ebcd
9 changes: 9 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
@@ -6730,3 +6730,12 @@ let code = """
"""
@test read(`$(Base.julia_cmd()) --startup-file=no --compile=min -e $code`, String) == "42"
end

# issue #29175
function f29175(tuple::T) where {T<:Tuple}
prefix::Tuple{T.parameters[1:end-1]...} = tuple[1:length(T.parameters)-1]
x = prefix
prefix = x # force another conversion to declared type
return prefix
end
@test f29175((1,2,3)) === (1,2)
You are viewing a condensed version of this merge commit. You can view the full changes here.