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.