You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After investigating a bit it looks like an infinite recursion when trying to instantiate Foo[T, C] inside of the field declaration of bar: Bar[Foo[T, C]].
The cached instantiation is never used, although new versions of it are repeatedly added to type instantiation cache.
Description
When compiling the following code, the compiler just stops without any error messages.
Another failing example
After investigating a bit it looks like an infinite recursion when trying to instantiate
Foo[T, C]
inside of the field declaration ofbar: Bar[Foo[T, C]]
.The cached instantiation is never used, although new versions of it are repeatedly added to type instantiation cache.
The stack trace when it crashes looks like this:
Nim Version
Nim Compiler Version 2.1.1 [Windows: amd64]
Compiled at 2024-02-09
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: a45f43d
active boot switches: -d:release
Current Output
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: