[Issue 20688] Wrong code when linking to C complex number functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 7 12:05:12 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20688
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Walter Bright from comment #1)
> The %f format is for doubles, and creal/cimag return reals.
So: https://github.com/dlang/druntime/blob/master/src/core/stdc/complex.d#L153
creal is weirdly an alias to "complex" instead of a function.
> To fix:
No, still a problem on Linux/x86_64.
--
More information about the Digitalmars-d-bugs
mailing list