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

          Issue ID: 16009
           Summary: '_d_monitorenter' is not nothrow
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: [email protected]
          Reporter: [email protected]

//////// test.d ////////
void main() nothrow
{
    auto o = new Object;
    synchronized(o) { }
}
////////////////////////

Is there any particular reason why synchronized(obj) statements are not
nothrow?

--

Reply via email to