Bug 2824 – -w switch breaks compilation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-04-09T07:51:00Z
Last change time
2015-06-09T01:18:03Z
Assigned to
nobody
Creator
dfj1esp02

Comments

Comment #0 by dfj1esp02 — 2009-04-09T07:51:11Z
--- 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 by clugdbug — 2010-02-21T13:29:25Z
Fixed in 2.031: now it (correctly) fails to compile regardless of whether -w is used.