Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
timotheecour opened this issue Jul 12, 2020 · 2 comments
Open

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

timotheecour opened this issue Jul 12, 2020 · 2 comments

Comments

@timotheecour
Copy link
Member

timotheecour commented Jul 12, 2020

@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`
@Clyybber
Copy link

Clyybber commented Jul 12, 2020

sfAddrTaken will probably be removed: nim-lang/Nim#14881 (comment)

@Araq
Copy link
Member

Araq commented Jul 13, 2020

Exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants