Skip to content

JET report_call issue #1225

Closed
JuliaLang/julia
#53015
@mestinso

Description

@mestinso

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]

Gives the following:
image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @jishnub@mestinso

      Issue actions

        JET report_call issue · Issue #1225 · JuliaArrays/StaticArrays.jl