Issue 24228 - Error: cannot implicitly convert expression `_Complex(0.0, 1.0)` of type `_Complex!double` to `idouble`
Summary: Error: cannot implicitly convert expression `_Complex(0.0, 1.0)` of type `_Co...
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-04 19:54 UTC by mw
Modified: 2023-11-04 19:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mw 2023-11-04 19:54:56 UTC
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).