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

got Assertion failed: (!ctx.ssavalue_assigned.at(idx)), function emit_ssaval_assign by an empty keyword arguments #36774

Closed
wookay opened this issue Jul 23, 2020 · 2 comments
Labels
regression Regression in behavior compared to a previous version

Comments

@wookay
Copy link
Contributor

wookay commented Jul 23, 2020

julia> function f(; kwargs...)
           a = (kwargs...,)
           @info :msg
       end
f (generic function with 1 method)

julia> f()
Assertion failed: (!ctx.ssavalue_assigned.at(idx)), function emit_ssaval_assign, file /Users/wookyoung/head/julia/src/codegen.cpp, line 3868.

signal (6): Abort trap: 6
in expression starting at REPL[2]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 752077 (Pool: 751930; Big: 147); GC: 1
[1]    82682 abort      /Users/wookyoung/head/julia/usr/bin/julia
  1. with keyword arguments works fine.
julia> f(k=1)
[ Info: msg
  1. using println works fine instead of @info.
julia> function f(; kwargs...)
           a = (kwargs...,)
           println(:msg)
       end
f (generic function with 1 method)

julia> f()
msg
julia> versioninfo()
Julia Version 1.6.0-DEV.520
Commit 7eecb73f29* (2020-07-23 07:03 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.5.0)
  CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
  JULIA_CUDA_SILENT = 1
@JeffBezanson
Copy link
Member

Works in 1.5.

@JeffBezanson JeffBezanson added the regression Regression in behavior compared to a previous version label Jul 23, 2020
@wookay
Copy link
Contributor Author

wookay commented Sep 25, 2020

fixed by #37634

@wookay wookay closed this as completed Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

2 participants