cgen behaviour for importc objects using importc objects internally #1419
Labels
bug
Something isn't working
compiler/backend
Related to backend system of the compiler
duplicate
This issue or pull request already exists
Example
I have spent a bit of time debugging this today.
I admit this might be incorrect by our specifications, so I wanted to check and otherwise report it.
Please note the last line.
When performing generic procedures which would use this type, the codegen would generate a struct instead of an alias for
type int128 {.importc: "__int128".} = object #...
.If however it is changed to
AtomicInt128* {.importc: "_Atomic __int128".} = hint128
then I do not have any issues. Is this intended? If so, perhaps causing such a type decl as an error would be helpful ~If this is borne from ignorance, please forgive me!
The text was updated successfully, but these errors were encountered: