[Issue 4604] New: A stack overflow with writeln
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 9 07:55:25 PDT 2010
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 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: -------
More information about the Digitalmars-d-bugs
mailing list