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

"continue" inside a block without loops gives "SIGSEGV: Illegal storage access. (Attempt to read from nil?)" #6367

Closed
dunca opened this issue Sep 11, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@dunca
Copy link

commented Sep 11, 2017

Using the "continue" keyword inside a block without loops gives "SIGSEGV: Illegal storage access. (Attempt to read from nil?)" when running the application.

block myBlock:
continue

From what I've heard, this isn't a supported feature, but how about a compile time warning?

@Yardanico

This comment has been minimized.

Copy link
Collaborator

commented Sep 11, 2017

Compiler error log:

nim.nim(121)             nim
nim.nim(77)              handleCmdLine
main.nim(163)            mainCommand
main.nim(74)             commandCompileToC
modules.nim(240)         compileProject
modules.nim(180)         compileModule
passes.nim(217)          processModule
passes.nim(135)          processTopLevelStmt
sem.nim(550)             myProcess
sem.nim(536)             semStmtAndGenerateGenerics
transf.nim(985)          transformStmt
transf.nim(914)          processTransf
transf.nim(817)          transform
transf.nim(246)          transformBlock
transf.nim(111)          transformSons
transf.nim(840)          transform
system.nim(2724)         sysFatal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.