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
This might be related to #10628
The following case 1 will trigger an ICE. Replacing bindSym by ident will not trigger it (case 2), or wrapping it in another array works (case 3).
import macros type SimdPrimitives* = enum simdSetZero simdBroadcast simdAdd template noop*(scalar: untyped): untyped = scalar template unreachable*(): untyped = {.error: "Unreachable".} # ################################# # Case 1 - Internal Compiler Error # Error: internal error: (filename: "seminst.nim", line: 328, column: 17) let genericPrimitives{.compileTime.}: array[SimdPrimitives, NimNode] = [ simdSetZero: bindSym"unreachable", simdBroadcast: bindSym"noop", simdAdd: bindSym"+", ] # ################################# # Case 2 - Compiles # let genericPrimitives{.compileTime.}: array[SimdPrimitives, NimNode] = [ # simdSetZero: ident"unreachable", # simdBroadcast: ident"noop", # simdAdd: ident"+", # ] # ################################# # Case 3 - SubArray - Compiles # type # SimdArch* = enum # archGeneric # x86_SSE # proc genSimdTableX86(): array[SimdArch, array[SimdPrimitives, NimNode]] = # let genericPrimitives: array[SimdPrimitives, NimNode] = [ # simdSetZero: bindSym"unreachable", # simdBroadcast: bindSym"noop", # simdAdd: bindSym"+", # ] # result =[ # archGeneric: genericPrimitives, # x86_SSE: default(array[SimdPrimitives, NimNode]) # ] # let SimdTable*{.compileTime.} = genSimdTableX86()
The text was updated successfully, but these errors were encountered:
GenericCPU now also uses the SIMDTable (+ workaround nim-lang/Nim#11668)
0b4ac7d
No longer crashes but gives a ambiguous identifier: + error
ambiguous identifier: +
Sorry, something went wrong.
Then I think it's solved. + matches with many so I would need a local + that binds stronger to help the compiler.
+
No branches or pull requests
This might be related to #10628
The following case 1 will trigger an ICE. Replacing bindSym by ident will not trigger it (case 2), or wrapping it in another array works (case 3).
The text was updated successfully, but these errors were encountered: