Thread overview
[Issue 22242] ICE when an overload is aliased back into a mixin
Aug 26, 2021
Paul Backus
Dec 17, 2022
Iain Buclaw
Dec 17, 2022
Iain Buclaw
Feb 28, 2023
RazvanN
August 26, 2021
https://issues.dlang.org/show_bug.cgi?id=22242

Paul Backus <snarwin+bugzilla@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |snarwin+bugzilla@gmail.com

--- Comment #1 from Paul Backus <snarwin+bugzilla@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.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22242

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22242

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
           Severity|normal                      |critical

--
February 28, 2023
https://issues.dlang.org/show_bug.cgi?id=22242

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
This seems to have been fixed in the latest version of the compiler. Closing as WORKSFORME. Please reopen if you can reproduce.

--