[Issue 22242] ICE when an overload is aliased back into a mixin
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 26 17:26:10 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22242
Paul Backus <snarwin+bugzilla at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |snarwin+bugzilla at gmail.com
--- Comment #1 from Paul Backus <snarwin+bugzilla at gmail.com> ---
The segfault is caused by infinite recursion in dmd.func.overloadApply, which
overflows the stack. Specifically, it is caused by this recursive call:
https://github.com/dlang/dmd/blob/717a966b8c85751390ebc5fbc77302c1d876a0a5/src/dmd/func.d#L2758
...which does not account for the possibility that a FuncAliasDeclaration's
funcalias member may point to itself.
--
More information about the Digitalmars-d-bugs
mailing list