www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9075] New: core.stdc.float_ is broken with -w switch

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9075

           Summary: core.stdc.float_ is broken with -w switch
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 25 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9075


Maxim Fomin <maxim maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maxim maxim-fomin.ru
         Resolution|                            |INVALID



---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 25 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9075


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



 Maxim  - no, this is a bug. This is a trivial bug in druntime (should be using
min_normal, not min).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 26 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9075


Maxim Fomin <maxim maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED



---

  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). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 26 2012