[Issue 23515] Named Enum of function SIGSEGFAULT
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 23 07:31:50 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=23515
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
Here's the generated code (renaming main() to test()):
_D5test16Easing9__lambda2MFNaNbNiNfZv:
0000: C3 ret // the lambda
_D5test14testFZv:
0000: 55 push RBP
0001: 48 8B EC mov RBP,RSP
0004: B9 00 00 00 00 mov ECX,0
0009: 31 C0 xor EAX,EAX
000b: 48 FF D0 call RAX
000e: 5D pop RBP
000f: C3 ret
Calling null will definitely seg fault.
--
More information about the Digitalmars-d-bugs
mailing list