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: nob...@puremagic.com
        ReportedBy: pis...@gmail.com


--- Comment #0 from Dorel P�slan <pis...@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: -------

Reply via email to