Summary: The 'capacity' function is not pure/nothrow/@safe.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: druntime

--- Comment #0 from 2011-07-16 01:59:47 PDT ---
As titled. Probably it is expected, or not.

Test case:
pure @safe nothrow int f6333() {
    auto x = [1,3];
    return x.capacity; 
x.d(3): Error: pure function 'f6333' cannot call impure function 'capacity'
x.d(3): Error: safe function 'f6333' cannot call system function 'capacity'
x.d(3): Error: capacity is not nothrow
x.d(1): Error: function x.f6333 'f6333' is nothrow yet may throw

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

Reply via email to