Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure std.math.cbrt #17272

Closed
dlangBugzillaToGithub opened this issue Mar 14, 2014 · 1 comment
Closed

Pure std.math.cbrt #17272

dlangBugzillaToGithub opened this issue Mar 14, 2014 · 1 comment
Labels

Comments

@dlangBugzillaToGithub
Copy link

bearophile_hugs reported this on 2014-03-14T11:32:56Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=12364

CC List

Description

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'
@thewilsonator
Copy link
Contributor

this is a phobos issue dlang/phobos#10577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants