Comment #0 by bearophile_hugs — 2014-03-14T11:32:56Z
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'
Comment #1 by robert.schadek — 2024-12-07T13:33:32Z