www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17458] New: [std.regex] Assertion failure in package.d

https://issues.dlang.org/show_bug.cgi?id=17458

          Issue ID: 17458
           Summary: [std.regex] Assertion failure in package.d
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: zorael gmail.com

import std.stdio;
import std.regex;

void main()
{
    enum pattern = r"^[a-zA-Z0-9_\\\[\]{}\^`-]+$";
    auto engine = regex(pattern);

    auto matches = "å".matchAll(engine);
    writeln(matches.hit);
}

--
Jun 01