Bug 2535 – Standard library does not mark functions as pure

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-12-21T20:21:00Z
Last change time
2015-06-09T01:20:51Z
Assigned to
bugzilla
Creator
jason.james.house

Comments

Comment #0 by jason.james.house — 2008-12-21T20:21:18Z
I hit this in std.cpuid, but I bet it occurs in many more places. Obviously, any part of phobos/druntime which does not properly mark pure functions is unusable from pure code. I'm pretty sure that the cpuid never changes while a program is running and the various attribute querying and toString should be pure.
Comment #1 by dsimcha — 2008-12-21T23:57:23Z
*** This bug has been marked as a duplicate of 2515 ***