www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14551] New: scope(failure) block causes bloat in nothrow

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

          Issue ID: 14551
           Summary: scope(failure) block causes bloat in nothrow functions
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

Consider the example shown in http://goo.gl/EY3o7p. There, simply adding an
empty scope(failure) block causes an increase in generated code. However, the
function is statically known to not throw so the entire scope(failure)
statement can be eliminated in the front-end.

--
May 06 2015