Bug 24228 – Error: cannot implicitly convert expression `_Complex(0.0, 1.0)` of type `_Complex!double` to `idouble`

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-11-04T19:54:56Z
Last change time
2024-12-13T19:31:34Z
Assigned to
No Owner
Creator
mw
Moved to GitHub: dmd#20351 →

Comments

Comment #0 by mingwu — 2023-11-04T19:54:56Z
I'm continuing to build the s7.c https://issues.dlang.org/show_bug.cgi?id=24187 with latest dmd $ dmd --version DMD64 D Compiler v2.106.0-beta.1 $ dmd s7.c #defines(3415): Error: cannot implicitly convert expression `_Complex(0.0, 1.0)` of type `_Complex!double` to `idouble` I cannot find the code which caused this problem (not on line 3415, BTW can dmd produce better error line number?); since idouble is a DMD internal type, and based on the error message, I think the error is obvious. So the question: can we add implicitly convert expression `_Complex(0.0, 1.0)` of type `_Complex!double` to `idouble`? Otherwise, we won't be able to compile s7.c (third party library).
Comment #1 by robert.schadek — 2024-12-13T19:31:34Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20351 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB