Summary: [safeD] Escaping a reference to a local variable from
                    safe function
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-08-14 13:16:28 PDT ---
int* foo()@safe{
    int n;
    return x;

This currently compiles without error.

(When fixing, make sure that safe functions can still assign to a
ConditionalExpression, afaik it is currently implemented by taking the address
of the 2. and 3. operands.)

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

Reply via email to