Bug 9075 – core.stdc.float_ is broken with -w switch

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-25T08:15:00Z
Last change time
2012-11-26T10:53:46Z
Assigned to
nobody
Creator
zan77137

Comments

Comment #0 by zan77137 — 2012-11-25T08:15:22Z
This code doesn't work with -w switch: -------------------------- import core.stdc.float_; void main(){} -------------------------- Result: core\stdc\float_.d(34): Warning: min property is deprecated, use min_normal instead core\stdc\float_.d(35): Warning: min property is deprecated, use min_normal instead core\stdc\float_.d(36): Warning: min property is deprecated, use min_normal instead
Comment #1 by maxim — 2012-11-25T10:07:12Z
It seems to work as intended: with -w option warnings prevent from generating executable. It is similar to --fatal-warnings option in other languages. You probably need -wi option which works as expected.
Comment #2 by clugdbug — 2012-11-26T03:48:12Z
@Maxim - no, this is a bug. This is a trivial bug in druntime (should be using min_normal, not min).
Comment #3 by maxim — 2012-11-26T10:53:46Z
(In reply to comment #2) > @Maxim - no, this is a bug. This is a trivial bug in druntime (should be using > min_normal, not min). I see. Now I close it again because it was fixed (https://github.com/D-Programming-Language/druntime/pull/358).