http://d.puremagic.com/issues/show_bug.cgi?id=4604

           Summary: A stack overflow with writeln
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2010-08-09 07:55:24 PDT ---
With dmd 2.048beta this program:

import std.stdio, std.regex, std.array;
void main() {
    writeln(array(match("1", regex(r"\d")).captures));
}


prints:
[1]


While this wrong program:

import std.stdio, std.regex, std.array;
void main() {
    writeln(array(match("1", regex(r"\d"))));
}


Produces:

object.Error: Stack Overflow
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...]

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

Reply via email to