{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/5167","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/5167/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/5167/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/5167/events","html_url":"https://github.com/nim-lang/Nim/issues/5167","id":198116537,"number":5167,"title":"Internal compiler error in handleGenericInvocation","user":{"login":"vegansk","id":2908508,"avatar_url":"https://avatars.githubusercontent.com/u/2908508?v=3","gravatar_id":"","url":"https://api.github.com/users/vegansk","html_url":"https://github.com/vegansk","followers_url":"https://api.github.com/users/vegansk/followers","following_url":"https://api.github.com/users/vegansk/following{/other_user}","gists_url":"https://api.github.com/users/vegansk/gists{/gist_id}","starred_url":"https://api.github.com/users/vegansk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vegansk/subscriptions","organizations_url":"https://api.github.com/users/vegansk/orgs","repos_url":"https://api.github.com/users/vegansk/repos","events_url":"https://api.github.com/users/vegansk/events{/privacy}","received_events_url":"https://api.github.com/users/vegansk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-30T08:01:08Z","updated_at":"2016-12-30T08:01:08Z","closed_at":null,"body":"Can't create minimal example, working on it. Steps to reproduce the bug:\r\n```sh\r\ngit clone https://github.com/vegansk/nimactors && \\\r\ncd nimactors && \\\r\ngit checkout comp-error && \\\r\nnimble install -y -d && \\\r\nnim test\r\n```\r\n\r\nThe bug appeared when I replaced the parameter type of the thread func to ForeignCell\r\n\r\nKoch temp c says:\r\n```\r\nTraceback (most recent call last)\r\nnim.nim(120)             nim\r\nnim.nim(76)              handleCmdLine\r\nmain.nim(155)            mainCommand\r\nmain.nim(66)             commandCompileToC\r\nmodules.nim(239)         compileProject\r\nmodules.nim(179)         compileModule\r\npasses.nim(213)          processModule\r\npasses.nim(135)          processTopLevelStmt\r\nsem.nim(495)             myProcess\r\nsem.nim(467)             semStmtAndGenerateGenerics\r\nsemstmts.nim(1581)       semStmt\r\nsemexprs.nim(819)        semExprNoType\r\nsemexprs.nim(2365)       semExpr\r\nimporter.nim(210)        evalImport\r\nimporter.nim(190)        impMod\r\nimporter.nim(176)        myImportModule\r\nmodules.nim(202)         importModule\r\nmodules.nim(179)         compileModule\r\npasses.nim(213)          processModule\r\npasses.nim(135)          processTopLevelStmt\r\nsem.nim(495)             myProcess\r\nsem.nim(467)             semStmtAndGenerateGenerics\r\nsemstmts.nim(1581)       semStmt\r\nsemexprs.nim(819)        semExprNoType\r\nsemexprs.nim(2365)       semExpr\r\nimporter.nim(210)        evalImport\r\nimporter.nim(190)        impMod\r\nimporter.nim(176)        myImportModule\r\nmodules.nim(202)         importModule\r\nmodules.nim(179)         compileModule\r\npasses.nim(213)          processModule\r\npasses.nim(135)          processTopLevelStmt\r\nsem.nim(495)             myProcess\r\nsem.nim(467)             semStmtAndGenerateGenerics\r\nsemstmts.nim(1581)       semStmt\r\nsemexprs.nim(819)        semExprNoType\r\nsemexprs.nim(2358)       semExpr\r\nsemstmts.nim(1352)       semProc\r\nsemstmts.nim(1206)       semProcAux\r\nsemstmts.nim(881)        semParamList\r\nsemtypes.nim(981)        semProcTypeNode\r\nsemtypes.nim(1275)       semTypeNode\r\nsemtypes.nim(1103)       semGeneric\r\nseminst.nim(163)         instGenericContainer\r\nsemtypinst.nim(100)      replaceTypeVarsT\r\nsemtypinst.nim(403)      replaceTypeVarsTAux\r\nsemtypinst.nim(318)      handleGenericInvocation\r\nsystem.nim(3465)         failedAssertImpl\r\nsystem.nim(3457)         raiseAssert\r\nsystem.nim(2581)         sysFatal\r\nError: unhandled exception: contains({tyRef, tyPtr}, newbody.kind)  [AssertionError]\r\nFAILURE\r\n```"}}
{"actor":{"display_login":"vegansk"}}