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.