[Issue 16009] New: '_d_monitorenter' is not nothrow

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 10 10:07:38 PDT 2016


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 at puremagic.com
          Reporter: thecybershadow at 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?

--


More information about the Digitalmars-d-bugs mailing list