Skip to content

sfAddrTaken not set for array a on a[0].addr #12

Open
@timotheecour

Description

@timotheecour

@Araq low priority but I noticed the following while working on some PR; is the following a bug?
sfAddrTaken is not set for array a on a[0].addr even though a and a[0].addr have the same address.

when true: # D20200711T150822
  proc main() =
    var a = [0,1]
    let a1 = a[0].addr # this does not set `sfAddrTaken` on `a`address
    let a2 = a.addr # this does set `sfAddrTaken` on `a`

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