www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12364] New: Pure std.math.cbrt

https://d.puremagic.com/issues/show_bug.cgi?id=12364

           Summary: Pure std.math.cbrt
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2014-03-14 11:32:56 PDT ---
void main() pure {
    import std.math: cbrt;
    auto x = cbrt(1.0);
}


DMD 2.066alpha gives:

test.d(3,18): Error: pure function 'D main' cannot call impure function
'std.math.cbrt'

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