digitalmars.D.bugs - [Issue 12879] New: Wrong line number for run-time array cast
- via Digitalmars-d-bugs (24/24) Jun 08 2014 https://issues.dlang.org/show_bug.cgi?id=12879
https://issues.dlang.org/show_bug.cgi?id=12879 Issue ID: 12879 Summary: Wrong line number for run-time array cast misalignment error Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Keywords: diagnostic Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: bearophile_hugs eml.cc void main() { void[] v = new void[40]; ubyte[7][] b = cast(ubyte[7][])v; } DMD 2.066alpha gives: object.Error (0): array cast misalignment While I expected something more like: object.Error (3): array cast misalignment --
Jun 08 2014