[Issue 7928] Regex regression - out of memory.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 17 00:19:42 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7928
--- Comment #3 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-04-17 00:20:35 PDT ---
Aha, I think I know what it is! Give me the prize ;)
Don't you have globals defined like this?
auto httpReqRegex = regex(`^(\w+)\s+((\w+)://([^/]+)(\S+))\s*(.*)`);
then it tries to init it at compile time. That makes it _parse_ them all at
CTFE.
Nice feature if it wasn't for bugs. The workaround is to init them in the
module constructor static this(){ ... )
--
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