https://issues.dlang.org/show_bug.cgi?id=12691
Dmitry Olshansky <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull Summary|std.regex.bmatch with empty |std.regex.bmatch bug in |string after OR operator |empty OR operator inside of |crashes with free(): |()* |invalid pointer | --- Comment #2 from Dmitry Olshansky <[email protected]> --- https://github.com/D-Programming-Language/phobos/pull/2164 The bug also applies to ctRegex as they share engines. Reduced test-case: import std.regex; void main() { assert(bmatch("e@", "^([a-z]|)*$").empty); assert(bmatch("e@", ctRegex!`^([a-z]|)*$`).empty); } --
