Hello! This bug is quite easy to reproduce:
proc test(a: int, b: int = a) =
echo a, b
test(5)
I do get a compiler error, but from gcc. I imagine that's not supposed to happen. It happens both in 0.17.2 and the devel version.Yes, once Nim checked your code it should never crash in GCC/Clang. Compiler should also never crash during compilation (Red text with "Internal Error")
You can report it in the Github issue.