www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19271] New: C++ exception handling does not work on OSX

https://issues.dlang.org/show_bug.cgi?id=19271

          Issue ID: 19271
           Summary: C++ exception handling does not work on OSX
           Product: D
           Version: D2
          Hardware: All
                OS: Mac OS X
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: pro.mathias.lang gmail.com

The typeinfo stuff and exception types (core.stdcpp.{typeinfo,exception} are
not defined on OSX, but are on Windows and CRuntime_Glibc.

Reproduce with:
```
import core.stdcpp.exception;
void main () { exception e; }
```

And get: `x.d(2): Error: undefined identifier exception, did you mean class
Exception?`

--
Sep 27 2018