Summary: Strange behaviour with static void[] arrays
           Product: D
           Version: 1.057
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-05-20 12:13:59 PDT ---
This code always worked:

struct X {
 union {
   void[] a;
   void[9] b;

However, if you remove the union (so that a, b are direct struct members), it
stops working and outputs "Error: integral constant must be scalar type, not
void" (without line number information!). It also stops compiling if you remove
the "a" member.

It also generates a wrong .sizeof for the struct (12 instead of 9*4). Not sure
what exactly is going on.

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

Reply via email to