Open ghost opened 6 years ago
The orror occurs in compiler/evaltempl.nim(44)
: index 1 not in 0 .. 0. @Araq, to fix it,
I request some documentation for evalTemplateAux
. What should this function do precisely?
What are all the arguments? Also a better documentation for the fields in TemplCtx would be nice.
With latest devel it produces an error instead:
/home/dian/Projects/nimforum/kk.nim(6, 3) template/generic instantiation of `rewriteMinusOne` from here
/home/dian/Projects/nimforum/kk.nim(1, 54) Error: undeclared identifier: 'T'
With latest devel it produces an error instead:
July 2020 update:
Error: unhandled exception: index 1 not in 0 .. 0 [IndexDefect]
which is the same as reported originally.
in 1.6.8 Error: unhandled exception: index 1 not in 0 .. 0 [IndexDefect]
think this can be close ?
think this can be close ?
No, it is still a crash.
what's the expected, I dont think localError == crash
This code:
crashes the compiler. Traceback:
I know that this snippet is stupid and doesn't make any sense. However it works with
a -= 1
instead ofa -= T(1)