compiler: internal error #4845

Closed
cheatfate opened this Issue Oct 2, 2016 · 0 comments

Projects

None yet

1 participant

@cheatfate
Contributor

This code

var slider = cast[ptr uint8](pointer)

causes compiler to fail with internal error:

test100.nim(1, 30) Error: internal error: expr(skType); unknown symbol

or with debug version of compiler

test100.nim(1, 30) Error: internal error: expr(skType); unknown symbol
Traceback (most recent call last)
nim.nim(115)             nim
nim.nim(71)              handleCmdLine
main.nim(254)            mainCommand
main.nim(65)             commandCompileToC
modules.nim(238)         compileProject
system.nim(1105)         compileModule
passes.nim(198)          processModule
passes.nim(131)          processTopLevelStmt
cgen.nim(1214)           myProcess
ccgstmts.nim(1121)       genStmts
ccgexprs.nim(2082)       expr
ccgstmts.nim(259)        genVarStmt
ccgstmts.nim(242)        genSingleVar
ccgstmts.nim(86)         loadInto
ccgexprs.nim(2006)       expr
msgs.nim(994)            internalError
msgs.nim(968)            liMessage
msgs.nim(840)            handleError
msgs.nim(824)            quit
FAILURE
@Araq Araq added a commit that closed this issue Oct 8, 2016
@Araq Araq fixes #4845 3a5dfd6
@Araq Araq closed this in 3a5dfd6 Oct 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment