Bug 14218 – [REG2.067a] casting null to integer type causes error message

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-23T18:50:00Z
Last change time
2015-06-17T21:01:26Z
Keywords
pull
Assigned to
nobody
Creator
r.sagitario

Comments

Comment #0 by r.sagitario — 2015-02-23T18:50:31Z
With dmd-2067-beta2: void main() { auto sz = cast(long)null; } test.d(5): Error: e2ir: cannot cast null of type typeof(null) to type long Any cast of null to an integer type seems to fail, but works in 2.066.
Comment #1 by k.hara.pg — 2015-02-25T16:46:01Z
Comment #2 by github-bugzilla — 2015-02-26T07:40:31Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3606cf6f70f4035d2001ae36aba12011d626658c fix Issue 14218 - casting null to integer type causes error message https://github.com/D-Programming-Language/dmd/commit/406d9dc1df72490b754f39e965ad4d3353eb306d Merge pull request #4446 from 9rnsr/fix14218 [REG2.067a] Issue 14218 - casting null to integer type causes error message
Comment #3 by github-bugzilla — 2015-03-01T01:03:54Z
Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/18f4c442e53e30b44a6c599e99f39eacc27ecef1 Merge pull request #4446 from 9rnsr/fix14218 [REG2.067a] Issue 14218 - casting null to integer type causes error message
Comment #4 by github-bugzilla — 2015-03-01T01:46:32Z
Comment #5 by github-bugzilla — 2015-04-11T12:24:49Z
Comment #6 by github-bugzilla — 2015-06-17T21:01:26Z