[Issue 16626] [Reg 2.073] extreme CTFE memory usage with compile time regex
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Dec 24 08:06:49 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16626
Martin Nowak <code at dawg.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[Reg 2.073] recent dmd |[Reg 2.073] extreme CTFE
|nightly runs out of memory |memory usage with compile
|building Higgs |time regex
--- Comment #5 from Martin Nowak <code at dawg.eu> ---
More specifically this commit
https://github.com/dlang/phobos/commit/e98fa4ad5ad39487844c91357cfec4f698e88230
is responsible for the high memory usage.
Also both, regex and ctRegex, trigger the bug if initialized during CTFE.
enum notAlnum = regex(`[^0-9|a-z|A-Z]`);
enum ctNotAlnum = ctRegex!(`[^0-9|a-z|A-Z]`);
https://github.com/dlang/phobos/pull/4995
--
More information about the Digitalmars-d-bugs
mailing list