www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2824] New: -w switch breaks compilation

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

           Summary: -w switch breaks compilation
           Product: D
           Version: 2.027
          Platform: PC
               URL: http://www.digitalmars.com/webnews/newsgroups.php?art_gr
                    oup=digitalmars.D.learn&article_id=16107
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: maxmo pochta.ru


---
ushort a(ushort b) pure nothrow
  { return b<<10|b; }  //compiles

ushort a(ushort b) pure nothrow
  { return b<<10; }  //compiles only without -w switch
---


-- 
Apr 09 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2824


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-02-21 13:29:25 PST ---
Fixed in 2.031: now it (correctly) fails to compile regardless of whether -w is
used.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 21 2010