D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2824 - -w switch breaks compilation
Summary: -w switch breaks compilation
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL: http://www.digitalmars.com/webnews/ne...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-09 07:51 UTC by anonymous4
Modified: 2015-06-09 01:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description anonymous4 2009-04-09 07:51:11 UTC
---
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
---
Comment 1 Don 2010-02-21 13:29:25 UTC
Fixed in 2.031: now it (correctly) fails to compile regardless of whether -w is used.