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

fix SIGSEGV in VM in opcLdDeref #13865

Merged
merged 1 commit into from
Apr 5, 2020

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Apr 4, 2020

block:
  # fix https://github.com/timotheecour/Nim/issues/88
  template fun() =
    var s = @[10,11,12]
    var a = s[0].addr
    a[] += 100 # was giving SIGSEGV
    doAssert a[] == 110
  static: fun()

/cc @Araq failure unrelated nitely/nim-regex#60 EDIT: fixed now

@timotheecour timotheecour changed the title fix SIGSEGV in VM fix SIGSEGV in VM in opcLdDeref Apr 4, 2020
@timotheecour timotheecour reopened this Apr 4, 2020
@Araq Araq merged commit f1fd3ef into nim-lang:devel Apr 5, 2020
@timotheecour timotheecour deleted the pr_fix_tnim_88_SIGSEGV_VM branch April 5, 2020 22:32
narimiran pushed a commit that referenced this pull request Apr 14, 2020
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

Successfully merging this pull request may close these issues.

regression: SIGSEGV with addr + template in static context
2 participants