http://d.puremagic.com/issues/show_bug.cgi?id=5874

           Summary: alloca should be pure
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2011-04-23 12:28:36 PDT ---
import core.stdc.stdlib;

void doAlloca() pure {
    alloca(8);
}

void main() {
    doAlloca();
}

Error: pure function 'doAlloca' cannot call impure function 'alloca'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to