[Issue 23209] Linker error for valid code.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 21 08:47:31 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23209
Luís Marques <luis at luismarques.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |luis at luismarques.eu
--- Comment #3 from Luís Marques <luis at luismarques.eu> ---
I also ran into this issue. The scenario is a bit different, I'm using LDC2 on
macOS and I'm linking D code with C code. The linker driver is clang++. The
same D code compiled with dub/ldc2 didn't seem to cause issues, but various D
libraries are involved so it's hard to tell for sure without reducing it, which
I haven't done yet. I also have two linker errors, instead of one. For now, I'm
working around it with:
C code:
void _D4core9exception__T15__switch_errorTZQsFNaNbNiNeAyamZv(void) {
assert(0);
}
void
_D3std4math10operations__T17extractBitpatternTfZQwFNaNbNiNexfZSQCjQCiQCg__T23FloatingPointBitpatternTfZQBc(void)
{
assert(0);
}
I.e. trapping implementations for the missing:
pure nothrow @nogc @trusted void
core.exception.__switch_errorT!().__switch_errorT(immutable(char)[], long);
pure nothrow @nogc @trusted
std.math.operations.FloatingPointBitpattern!(float).FloatingPointBitpattern
std.math.operations.extractBitpattern!(float).extractBitpattern(const(float))
--
More information about the Digitalmars-d-bugs
mailing list