[Issue 21498] Functions with delegate parameter overloaded on attributes fail miserably

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 2 01:27:45 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21498

moonlightsentinel at disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |moonlightsentinel at disroot.o
                   |                            |rg
         Resolution|---                         |INVALID

--- Comment #1 from moonlightsentinel at disroot.org ---
Attributes for function literals are inferred nowadays and `i => x = i` is
inferred as @safe pure nothrow @nogc, hence calling the second overload of
functional. That causes an infinite recursion and crashes due to a stack
overflow.

--


More information about the Digitalmars-d-bugs mailing list