Skip to content

Error during ReinterpretArray-to-Array copy: isassigned(::ReinterpretArray) is missing #52925

Closed

Description

MWE:

julia> Array(reinterpret(reshape, Float32, ComplexF32[1.0f0+2.0f0*im]))
ERROR: MethodError: no method matching isassigned(::Base.ReinterpretArray{Float32, 2, ComplexF32, Vector{ComplexF32}, true}, ::Base.SCartesianIndex2{2})

Closest candidates are:
  isassigned(::AbstractArray, ::CartesianIndex)
   @ Base multidimensional.jl:1568
  isassigned(::AbstractArray, ::Union{Integer, CartesianIndex}...)
   @ Base multidimensional.jl:1569

Stacktrace:
 [1] copyto_unaliased!
   @ ./abstractarray.jl:1089 [inlined]
 [2] copyto!(dest::Matrix{Float32}, src::Base.ReinterpretArray{Float32, 2, ComplexF32, Vector{ComplexF32}, true})
   @ Base ./abstractarray.jl:1058
 [3] copyto_axcheck!
   @ ./abstractarray.jl:1188 [inlined]
 [4] Array
   @ ./array.jl:612 [inlined]
 [5] Array(A::Base.ReinterpretArray{Float32, 2, ComplexF32, Vector{ComplexF32}, true})
   @ Core ./boot.jl:601
 [6] top-level scope
   @ REPL[8]:1

Bisected to #51760; cc @vtjnash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]regressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions