Closed
Description
I ran into an issue found by JET.jl in some of my personal code when using StaticArrays. I asked about it on discourse (https://discourse.julialang.org/t/help-on-reported-jet-issue-when-using-staticarrays/107444) and the main feedback given was to report here.
Here is a minimum working example:
using JET
using StaticArrays
a=MVector(1,2,3,4,5)
b=MVector(6,7,8,9,10)
@report_call b[a.==2]
Note that there are no issues with equivalent non static array code:
using JET
a=[1,2,3,4,5]
b=[6,7,8,9,10]
@report_call b[a.==2]
Metadata
Metadata
Assignees
Labels
No labels
Activity
Add type assertion in iterate for logicalindex (#53015)
jishnub commentedon Jan 23, 2024
Fixed by JuliaLang/julia#53015
Add type assertion in iterate for logicalindex (#53015)
Add type assertion in iterate for logicalindex (JuliaLang#53015)