Skip to content

@allocated with broadcast expression fails on 1.12 #59885

@aplavin

Description

@aplavin

Noticed in a CI run of StructArrays, JuliaArrays/StructArrays.jl#334.
MWE:

julia> f(x) = @allocated x .+ 1
f (generic function with 1 method)

julia> f([1,2])
80  # on 1.11
ERROR: UndefVarError: `.+` not defined in `Main`  # on 1.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    broadcastApplying a function over a collectionregressionRegression in behavior compared to a previous versionregression 1.12Regression in the 1.12 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions