Bug 12364 – Pure std.math.cbrt

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-14T11:32:56Z
Last change time
2024-12-07T13:33:32Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#17272 →

Comments

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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17272 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB