[Issue 23209] Linker error for valid code.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 24 13:52:04 UTC 2022


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

--- Comment #2 from kdevel <kdevel at vogtner.de> ---
$ dmd k.d
k.o: In function
`_D4core8internal7switch___T14__switch_errorZQrFNaNbNiNfAyamZv':
k.d:(.text._D4core8internal7switch___T14__switch_errorZQrFNaNbNiNfAyamZv[_D4core8internal7switch___T14__switch_errorZQrFNaNbNiNfAyamZv]+0x19):
undefined reference to
`_D4core9exception__T15__switch_errorTZQsFNaNbNiNeAyamZv'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1

$ dmd -allinst -run k.d
{}

[for the record: binutils < 2.26 raises unrecognized relocation (0x2a) in
section `.text', https://stackoverflow.com/questions/52737698]

--


More information about the Digitalmars-d-bugs mailing list