www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16009] New: '_d_monitorenter' is not nothrow

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: nobody puremagic.com
          Reporter: thecybershadow gmail.com

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

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

--
May 10 2016