[Issue 2182] New: Exceptions don't work on FreeBSD

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 28 01:08:22 PDT 2008


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

           Summary: Exceptions don't work on FreeBSD
           Product: DGCC aka GDC
           Version: unspecified
          Platform: PC
        OS/Version: Other
            Status: NEW
          Keywords: EH
          Severity: major
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: korslund at gmail.com


I am having some problems with exceptions with gdc on FreeBSD. A simple test
case is this:

----- test.d -------
import std.stdio;

void main() {
        try  {
                throw new Exception("test");
        } catch (Exception e) {
        }
}
-------------------
% gdc test.d
% ./a.out 
[1]    98829 abort      ./a.out

Removing the try-catch blocks produces the same result.


-- 



More information about the D.gnu mailing list