Bug 1097 – Missing line number: casting array to array of different element size

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-05T12:45:00Z
Last change time
2014-02-16T15:25:30Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2007-04-05T12:45:49Z
void main() { auto x = cast(int[])"a"; } Result of compiling above: "Error: cannot cast char[1] to int[] since sizes don't line up" with no information on which file or line. Tested in 1.009 and 1.010, same result.
Comment #1 by thomas-dloop — 2007-04-06T04:15:10Z
Comment #2 by clugdbug — 2008-07-09T07:11:18Z
Fixed DMD1.032
Comment #3 by bugzilla — 2008-07-09T22:37:54Z
Fixed dmd 1.032 and 2.016