dmd -O causes incorrect output

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Jan 25 19:18:47 UTC 2021


On Mon, Jan 25, 2021 at 06:45:43PM +0000, Saurabh Das via Digitalmars-d-learn wrote:
> On Monday, 25 January 2021 at 18:19:24 UTC, H. S. Teoh wrote:
[...]
> > It's probably a bug. File a bug on bugzilla: https://issues.dlang.org
[...]
> > DMD's backend is known to have obscure bugs that crop up every so
> > often.  If this issue is being a showstopper, consider switching to
> > LDC or GDC instead.  (You might want to try the same code with
> > LDC/GDC anyway, just to see whether they have the same problem. My
> > guess is they don't.)
[...]
> LDMD2 seems to not suffer from this issue.

No surprise there. I recommend using LDC (ldmd2) instead.

Still file the bug, though, so that somebody will fix it eventually.


T

-- 
There is no gravity. The earth sucks.


More information about the Digitalmars-d-learn mailing list