https://issues.dlang.org/show_bug.cgi?id=23603
--- Comment #2 from Bastiaan Veelo <[email protected]> --- I agree with your recommendations obviously, but it doesn't solve the seemingly unexplainable cases where dmd claims to run out of memory. There is plenty of memory available. This example succeeds when I *remove* the -lowmem option. LDC does not run out of memory compiling the same code. In other cases that are hard to reduce I sometimes get the above verbose message, sometimes just "Error: out of memory", sometimes only exit code -1073741795 (0xC000001D). When a large code base reduces to a nice concise handfull of lines like this it is easy to rewrite like you suggest, but this particular reduction took four weeks to prepare and required manual steps. I have another case that is still running, not sure if that will ever converge to reveal the problematic code. --
