[Issue 24187] dmd ImportC: cmathcalls.h(55): Error: illegal type combination
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 30 05:16:31 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24187
--- Comment #6 from mw <mingwu at gmail.com> ---
Haha, I made it: 2 lines!
$ cat s2.i
extern _Complex _Float32 cacosf32 (_Complex _Float32 __z) __attribute__
((__nothrow__ , __leaf__)); extern _Complex _Float32 __cacosf32 (_Complex
_Float32 __z) __attribute__ ((__nothrow__ , __leaf__));
extern _Complex _Float32x cacosf32x (_Complex _Float32x __z) __attribute__
((__nothrow__ , __leaf__)); extern _Complex _Float32x __cacosf32x (_Complex
_Float32x __z) __attribute__ ((__nothrow__ , __leaf__));
$ gcc -c s2.i # ok
$ dmd s2.i
s2.i(1): Error: illegal type combination
s2.i(1): Error: missing comma or semicolon after declaration of `_Float32`,
found `cacosf32` instead
s2.i(1): Error: illegal type combination
s2.i(1): Error: missing comma or semicolon after declaration of `_Float32`,
found `__cacosf32` instead
s2.i(2): Error: illegal type combination
s2.i(2): Error: missing comma or semicolon after declaration of `_Float32x`,
found `cacosf32x` instead
s2.i(2): Error: illegal type combination
s2.i(2): Error: missing comma or semicolon after declaration of `_Float32x`,
found `__cacosf32x` instead
I will attach s2.i.
But if you fix s2.i, pls also try if the fix works for s7.i.gz.
--
More information about the Digitalmars-d-bugs
mailing list