Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save philip-wernersbach/0c34a34d641544d30bb0 to your computer and use it in GitHub Desktop.
Save philip-wernersbach/0c34a34d641544d30bb0 to your computer and use it in GitHub Desktop.
lib/pure/collections/lists.nim(29, 5) Error: internal error: genTraverseProc()
Traceback (most recent call last)
nim.nim(107) nim
nim.nim(71) handleCmdLine
main.nim(255) mainCommand
main.nim(63) commandCompileToC
modules.nim(221) compileProject
modules.nim(169) compileModule
passes.nim(203) processModule
passes.nim(137) processTopLevelStmt
sem.nim(462) myProcess
sem.nim(434) semStmtAndGenerateGenerics
semstmts.nim(1480) semStmt
semexprs.nim(912) semExprNoType
semexprs.nim(2321) semExpr
importer.nim(172) evalImport
importer.nim(161) myImportModule
modules.nim(182) importModule
modules.nim(169) compileModule
passes.nim(203) processModule
passes.nim(137) processTopLevelStmt
sem.nim(462) myProcess
sem.nim(434) semStmtAndGenerateGenerics
semstmts.nim(1480) semStmt
semexprs.nim(912) semExprNoType
semexprs.nim(2321) semExpr
importer.nim(172) evalImport
importer.nim(161) myImportModule
modules.nim(182) importModule
modules.nim(169) compileModule
passes.nim(203) processModule
passes.nim(137) processTopLevelStmt
cgen.nim(1217) myProcess
ccgstmts.nim(1116) genStmts
ccgexprs.nim(2071) expr
ccgstmts.nim(1116) genStmts
ccgexprs.nim(2138) expr
cgen.nim(787) genProc
cgen.nim(757) genProcNoForward
cgen.nim(677) genProcAux
ccgstmts.nim(1116) genStmts
ccgexprs.nim(2071) expr
ccgstmts.nim(1116) genStmts
ccgexprs.nim(2034) expr
ccgexprs.nim(1705) genMagicExpr
ccgexprs.nim(1110) genNew
ccgexprs.nim(1085) rawGenNew
ccgtypes.nim(999) genTypeInfo
ccgtypes.nim(1018) genTypeInfo
ccgtrav.nim(122) genTraverseProc
ccgtrav.nim(63) genTraverseProc
ccgtrav.nim(75) genTraverseProc
ccgtrav.nim(29) genTraverseProc
ccgtrav.nim(48) genTraverseProc
msgs.nim(991) internalError
msgs.nim(965) liMessage
msgs.nim(837) handleError
msgs.nim(821) quit
@philip-wernersbach
Copy link
Author

The line that crashes the compiler is:

result[keyInterned] = (order: cast[OrderedTableRef[ref string, bool] not nil](newOrderedTable[ref string, bool]()), 
                        entries: entries)

Where entries is a ref SinglyLinkedList[ref Table[ref string, string]], and result is a var Table[ref string, EntryValues], and `EntryValues is:

EntryValues* = tuple
        order: OrderedTableRef[ref string, bool] not nil
        entries: ref SinglyLinkedList[ref Table[ref string, string]] not nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment