Skip to content

JET report_call issue #1225

@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

    No branches or pull requests

    Issue actions