[Issue 5874] New: alloca should be pure
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Apr 23 12:32:15 PDT 2011
    
    
  
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: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list