Bug 14380 – core.bitop.bsf is marked as pure but isn't

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-31T00:26:19Z
Last change time
2024-12-07T13:35:04Z
Assigned to
No Owner
Creator
Vladimir Panteleev
See also
https://issues.dlang.org/show_bug.cgi?id=14379
Moved to GitHub: dmd#17141 →

Comments

Comment #0 by dlang-bugzilla — 2015-03-31T00:26:19Z
core.bitop.bsf returns an undefined value if its argument is 0. However, it is marked as pure. The function should either assert that its input is non-zero, or have its pure attribute removed.
Comment #1 by robert.schadek — 2024-12-07T13:35:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17141 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB