-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
VM regression #7261
Comments
Workaround: var page = addr pages[pages.len-1] |
No longer crashes with #head, is it fixed?
|
Still not fixed, it shouldn't die, it should work. |
I believe this is just another case of #1781, the snippet above can be reproduced by replacing the proc parseAtlas(stream: var CtsStream) =
var pages = @[AtlasPage()]
var line = ""
block:
let page = addr pages[^1]
discard stream.peekLine(line)
discard stream.peekLine(line)
echo page[] When the VM compiles this function it generates the following bytecode:
The problem seems to be in the definition of
The problem seems to be that even though the As you can see the problem goes away if you turn the |
Still an issue today, 2018-12-05. |
This is a regression reported on the forum, see https://forum.nim-lang.org/t/3582
The text was updated successfully, but these errors were encountered: