Bug 13842 – Can't write integer minimums literals long-hand.

Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-12-09T12:40:00Z
Last change time
2014-12-17T18:32:40Z
Assigned to
nobody
Creator
john.loughran.colvin

Comments

Comment #0 by john.loughran.colvin — 2014-12-09T12:40:52Z
The compiler is being clever and erroring out saying that there's signed overflow, because it can't see that -9223372036854775808L is a valid long. It appears to apply the check before considering the minus sign. Obviously you can just use long.min, so it's only a minor annoyance.
Comment #1 by hsteoh — 2014-12-17T18:32:40Z
*** This issue has been marked as a duplicate of issue 8929 ***