www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10483] New: ICE(expression.c) .init of struct with block initialized 2D static array

http://d.puremagic.com/issues/show_bug.cgi?id=10483

           Summary: ICE(expression.c) .init of struct with block
                    initialized 2D static array
           Product: D
           Version: D1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: coffimplib
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au


--- Comment #0 from Don <clugdbug yahoo.com.au> 2013-06-26 20:27:12 PDT ---
Related to bug 10198
---
struct Bug {
        int val[3][4];
}

struct Outer {
        Bug p = Bug(67);
}

int k1 = Outer.init.p.val[2][2];   // ICE(expression.c)

void main()
{
   int k2 = Outer.init.p.val[2][2]; // Segfault (backend/type.c)
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2013