Summary: [Regression] No warning when escaping local reference
                    type variables
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-01-15 06:39:05 PST ---
Object foo()
    scope obj = new Object;
    return obj;

Introduced with:

ExpStatement::scopeCode sets the noscope flag to mark that
the destructor already ran. This prevents VarExp::checkEscape
from emitting an error.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to