You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
bearophile_hugs reported this on 2014-03-14T11:32:56Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=12364
CC List
Description
The text was updated successfully, but these errors were encountered: