unreachable reached when struct constructor trys to convert a Vector{Union{Nothing, T} where T}
to a Vector{Any}
#38091
Labels
bug
Indicates an unexpected problem or unintended behavior
MWE:
this leads to "illegal hardware instruction" on both Julia 1.5.2 and julia 1.6.0-DEV.1184
The lowered code and typed code seems fine, but
code_llvm
givesalso I find that the result of
convert
andVector{Any}(x)
does not match, thoughconvert
actually (should) callsVector{Any}
to convertxs
toVector{Any}
(https://github.com/JuliaLang/julia/blob/master/base/array.jl#L554), e.gThis is because Julia thinks
xs
of typeVector{Union{Nothing, T} where T}
is aVector{Any}
, soconvert
returnsxs
directly but I'm not sure if this is actually true...The text was updated successfully, but these errors were encountered: