[Issue 5072] New: Iterating an empty result returned by match() crashes the application
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 18 11:51:07 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5072
Summary: Iterating an empty result returned by match() crashes
the application
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: pislan at gmail.com
--- Comment #0 from Dorel Pîslan <pislan at gmail.com> 2010-10-18 11:50:17 PDT ---
Created an attachment (id=785)
Full D program that reproduces bug.
In this code:
try
{
foreach( r; result.captures)
writeln(r);
}
catch(Exception * exc)
{
//we never get here
}
if result is empty the application exits. And no exception is caught.
Full program attached.
Tested with D2 compiler. Version: not specified. Size: 1.340.444 bytes
--
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