We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Weird compiler crash in latest version (including 0.20.2 and 0.20.99) involving static[T]
static[T]
proc f(x: static[int]) = for l in and @[1, 2, 3].items: discard f(4)
Yes, I know that and is a typo, but shouldn't that cause normal error, not a crash?
and
compiler\nim.nim(106) nim compiler\nim.nim(83) handleCmdLine compiler\cmdlinehelper.nim(98) loadConfigsAndRunMainCommand compiler\main.nim(188) mainCommand compiler\main.nim(92) commandCompileToC compiler\modules.nim(144) compileProject compiler\modules.nim(85) compileModule compiler\passes.nim(210) processModule compiler\passes.nim(86) processTopLevelStmt compiler\sem.nim(601) myProcess compiler\sem.nim(569) semStmtAndGenerateGenerics compiler\semstmts.nim(2224) semStmt compiler\semexprs.nim(987) semExprNoType compiler\semexprs.nim(2735) semExpr compiler\semstmts.nim(2164) semStmtList compiler\semexprs.nim(2645) semExpr compiler\semexprs.nim(968) semDirectOp compiler\semexprs.nim(817) semOverloadedCallAnalyseEffects compiler\semcall.nim(541) semOverloadedCall compiler\semcall.nim(502) semResolvedCall compiler\seminst.nim(388) generateInstance compiler\seminst.nim(148) instantiateBody compiler\semexprs.nim(1745) semProcBody compiler\semexprs.nim(2735) semExpr compiler\semstmts.nim(2164) semStmtList compiler\semexprs.nim(2745) semExpr compiler\semstmts.nim(868) semFor compiler\semexprs.nim(77) semExprNoDeref compiler\semexprs.nim(2657) semExpr compiler\semexprs.nim(968) semDirectOp compiler\semexprs.nim(814) semOverloadedCallAnalyseEffects compiler\semcall.nim(533) semOverloadedCall compiler\semcall.nim(335) resolveOverloads compiler\semcall.nim(93) pickBestCandidate compiler\sigmatch.nim(2522) matches compiler\sigmatch.nim(2459) matchesAux compiler\sigmatch.nim(2261) prepareOperand compiler\semexprs.nim(49) semOperand compiler\semexprs.nim(2607) semExpr compiler\semexprs.nim(2657) semExpr compiler\semexprs.nim(968) semDirectOp compiler\semexprs.nim(817) semOverloadedCallAnalyseEffects compiler\semcall.nim(533) semOverloadedCall compiler\semcall.nim(385) resolveOverloads compiler\semcall.nim(296) getMsgDiagnostic compiler\lookups.nim(434) nextOverloadIter lib\system\fatal.nim(39) sysFatal Error: unhandled exception: 'sym' is not accessible using discriminant 'kind' of type 'TNode' [FieldError]
$ nim -v Nim Compiler Version 0.20.99 [Windows: i386] Compiled at 2019-09-06 Copyright (c) 2006-2019 by Andreas Rumpf
The text was updated successfully, but these errors were encountered:
Still present in 1.0.4
Sorry, something went wrong.
fixes #12148 [backport]
3fb079d
22b2684
fixes nim-lang#12148 [backport] (nim-lang#12888)
f52395f
(cherry picked from commit 22b2684)
No branches or pull requests
Weird compiler crash in latest version (including 0.20.2 and 0.20.99) involving
static[T]
Example
Yes, I know that
and
is a typo, but shouldn't that cause normal error, not a crash?Error
Additional Information
The text was updated successfully, but these errors were encountered: