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: [email protected]
          Reporter: [email protected]

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

--

Reply via email to