[Issue 18195] New: out/in need to be nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 5 13:55:57 UTC 2018


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

          Issue ID: 18195
           Summary: out/in need to be nothrow
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: greensunny12 at gmail.com

The following shouldn't be allowed:

---
int foo()
out
{
    throw new Exception("a");
}
do
{
   return 2;
}

void main()
{
    foo();
}
---


See also: https://github.com/dlang/dmd/pull/7553

--


More information about the Digitalmars-d-bugs mailing list