www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15018] New: Win64: ICE when assigning struct of size 4 to slice

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: nobody puremagic.com
          Reporter: r.sagitario gmx.de

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

--
Sep 05 2015