[Issue 21499] New: Backref mangling implementation causes OOM in some edge cases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 22 16:05:08 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21499
Issue ID: 21499
Summary: Backref mangling implementation causes OOM in some
edge cases
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
This PR https://github.com/dlang/dmd/pull/6998
Altered the original fail12485.d test, as it now only fails to compile due to
OOM.
---
void dorecursive()
{
recursive([0]);
}
void recursive(R)(R r)
{
import std.algorithm;
recursive( r.filter!(e=>true) );
}
---
Test needs reducing to not import phobos, but otherwise there should be no
reason why a slowdown in compilation should occur (or infinite recursion?), nor
should it be causing OOM either.
--
More information about the Digitalmars-d-bugs
mailing list