www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10797] New: std.regex: ctRegex "codegen" bug with certain nested infinite loops

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10797

           Summary: std.regex: ctRegex "codegen" bug with certain nested
                    infinite loops
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: dmitry.olsh gmail.com



13:08:20 PDT ---
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 ""
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10797


Dmitry Olshansky <dmitry.olsh gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|DMD                         |Phobos
         Resolution|                            |FIXED



13:08:39 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1464

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2013