Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
I'm aware using pure with overloading is pointless, I forgot to remove the pragma as I was converting from pure enums to overloaded, which are much nicer to use. In any case, I don't believe nim should segfault.
Nim Version
Nim Compiler Version 1.9.1 [Linux: amd64]
Compiled at 2023-01-13
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 1e52423774e81f71d10a712575fd65231705362e
active boot switches: -d:release
I also experience the same issue with 1.6.10
Current Output
Hint: used config file '/home/francis/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf]
Hint: used config file '/home/francis/.choosenim/toolchains/nim-#devel/config/config.nims' [Conf]
Hint: used config file '/home/francis/source/svd2nim/nim.cfg' [Conf]
......................................................................
/home/francis/source/svd2nim/atsamd21g18a_new.nim(14, 45) Error: ambiguous identifier: 'ABOVE' -- use one of the following:
AC_WINCTRL_WINTSEL0.ABOVE: AC_WINCTRL_WINTSEL0
AC_STATUSA_WSTATE0.ABOVE: AC_STATUSA_WSTATE0
/home/francis/source/svd2nim/atsamd21g18a_new.nim(14, 45) Error: ambiguous identifier: 'ABOVE'
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Description
Running
nim check
on the following code causes a segfault:I'm aware using pure with overloading is pointless, I forgot to remove the pragma as I was converting from pure enums to overloaded, which are much nicer to use. In any case, I don't believe nim should segfault.
Nim Version
I also experience the same issue with 1.6.10
Current Output
Possible Solution
No idea, sorry.
Additional Information
No response