Is D really that bad?

H. S. Teoh hsteoh at qfbox.info
Tue Nov 1 22:02:46 UTC 2022


On Tue, Nov 01, 2022 at 09:31:09PM +0000, ryuukk_ via Digitalmars-d wrote:
> Hijacking this thread since there seems to be lot of energy available
> here
> 
> It would be cool if someone could take care of that issue:
> https://forum.dlang.org/thread/lxnogwxpuiwlxvruqlrs@forum.dlang.org
> 
> It's pretty concerning that this more than 1 year old bug still exist,
> quite dangerous bug

Are you referring to this issue?

	https://issues.dlang.org/show_bug.cgi?id=22583

I just tested it, dmd shows the bug, but ldc2 generates correct code.
Looks like a DMD backend bug.  I'm looking at the dmd generated asm
right now to see what's going on... looks like it has something to do
with passing floats via the xmm* registers that somehow got mixed up
between caller/callee.

Once I have a clearer idea I'll update the bug.  DMD backend is beyond
my depth, though. Black magic happens there and I don't have the
time/patience to figure it all out.


T

-- 
Music critic: "That's an imitation fugue!"


More information about the Digitalmars-d mailing list