Bug 10797 – std.regex: ctRegex "codegen" bug with certain nested infinite loops
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-11T13:08:00Z
Last change time
2013-08-11T13:08:39Z
Assigned to
nobody
Creator
dmitry.olsh
Comments
Comment #0 by dmitry.olsh — 2013-08-11T13:08:20Z
Another bug caught by applying full std.regex test suite to ctRegex.
import std.algorithm, std.regex;
void main()
{
auto cr = ctRegex!"(a+|b)*";
auto m = "ab".match(cr);
assert(m);
auto cap = m.front;
assert(m[0] == "ab" && m[1] == "b"); //instead would match: "a" and ""
}