http://d.puremagic.com/issues/show_bug.cgi?id=2535
Summary: Standard library does not mark functions as pure
Product: D
Version: 2.022
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
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.
--