Summary: Assertion `sz <= vsz' failed with struct literal
                    initializing zero length array
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Iain Buclaw <> 2010-10-20 16:14:46 PDT ---
Test cases:

struct A { int[0] b; }
A a = A(0); // Fails, compiler aborts
A b = {b:0}; // OK, but perhaps shouldn't be.
A c = A([]); // OK
A d = {b:[]}; // OK

Although the compiler shouldn't issue an assert, a zero length array
should be enforced to have a 0 length initializer.


Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to