[Issue 20562] [dmd] Memory allocation failed (ERROR: This is a compiler bug)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 5 21:03:20 UTC 2020


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

--- Comment #7 from JR <zorael at gmail.com> ---
(In reply to Seb from comment #6)
> This probably doesn't help you, but as it's easy to test:
> Did you try this with 2.090 as well? There was a regression with the change
> to build.d that omitted the -O flag on Windows. This has been addressed
> since.

I hadn't, so I tested it now with current master
(v2.090.0-beta.1-118-g8fc81f40d) and I get the same results. Further I tried a
64-bit compiler (with digger build --model=64), and it runs out of memory too.

I've also retried the bisection several times hoping it would land on a
different commit, but I get the same one. I even made the tester script test
each build three times so as to not miss something due to transient successes.

The only thing that works so far is to copy/paste the build command `dub build
-v` prints and run it with -lowmem added. Curiously dub with -lowmem DFLAGS
does not seem to work. Manually calling dmd with the same command does.

--


More information about the Digitalmars-d-bugs mailing list