[Issue 6646] New: [SafeD] array.reserve is not @safe/trusted

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 11 10:13:53 PDT 2011


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

           Summary: [SafeD] array.reserve is not @safe/trusted
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: dmitry.olsh at gmail.com


--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2011-09-11 10:13:37 PDT ---
I'm not sure if it's druntime or DMD problem.

Testcase:

@safe void bug()
{
    int[] a;
    a.reserve(10);
}

Fails to compile with:
Error: safe function 'bug' cannot call system function 'reserve'

-- 
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