https://d.puremagic.com/issues/show_bug.cgi?id=12366
Summary: Range violation in compile-time regex
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-03-15
02:03:30 EET ---
import std.regex;
void main()
{
auto re = ctRegex!(`^((?=(xx+?)\2+$)((?=\2+$)(?=(x+)(\4+$))\5){2})*x?$`);
"xxxxxxxx".match(re);
}
This program crashes at runtime:
[email protected](3108): Range violation
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------