https://issues.dlang.org/show_bug.cgi?id=15018

          Issue ID: 15018
           Summary: Win64: ICE when assigning struct of size 4 to slice
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

Slight variation of issue 11596:

/////
struct S { short[2] m; }

S f()
{
    S s;
    return s;
}

void g(S s) {}

void h()
{
    S[3] s3;
    s3[] = f();
}
/////

Compiling with git-head or dmd 2.068 for Win64 yields:

Internal error: backend\cgcs.c 355

--

Reply via email to