Bug 12747 – std.regex bug in the parser allows reference to open groups.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-15T11:20:00Z
Last change time
2015-06-09T01:31:13Z
Keywords
pull
Assigned to
dmitry.olsh
Creator
dmitry.olsh

Comments

Comment #0 by dmitry.olsh — 2014-05-15T11:20:04Z
Should cause an exception: auto re = regex(`^x(\1)`);
Comment #1 by dmitry.olsh — 2014-05-15T12:11:30Z
Comment #2 by github-bugzilla — 2014-05-22T08:37:00Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/f4a37ae7d66212c459b4e89df2dcb92a7640615f Fix issue 12747 std.regex bug in the parser allows reference to open groups. Check the stack of opened constructs for groups when emit back-refs. https://github.com/D-Programming-Language/phobos/commit/d1dc1abb4ece0f9ccff91d918690cbe177f55f47 Merge pull request #2170 from DmitryOlshansky/issue-12747 Fix issue 12747 std.regex bug in the parser allows reference to open gro...