You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should compile, or at the very least not cause compiler segfault.
Possible Solution
No idea, but it appears that t.n is nil in replaceTypeVarsTAux
Additional Information
$ .\Nim\bin\nim -vNim Compiler Version 1.6.7 [Windows: amd64] Compiled at 2022-06-23Copyright (c) 2006-2021 by Andreas Rumpfgit hash: 6f290fa3863824ec935d381bfefc850acd75196factive boot switches:
The text was updated successfully, but these errors were encountered:
metagn
added a commit
to metagn/Nim
that referenced
this issue
Sep 8, 2024
Proc argument type derived from generic type argument causes segfault in compiler.
Example
The following code results in compiler segfault:
Any other static value or absense of operator does not cause the problem, for example
Current Output
The last traceback line refers here:
Nim/compiler/semtypinst.nim
Line 540 in 6f290fa
Expected Output
Should compile, or at the very least not cause compiler segfault.
Possible Solution
No idea, but it appears that
t.n
is nil inreplaceTypeVarsTAux
Additional Information
The text was updated successfully, but these errors were encountered: