Summary: Void initializers in unions considered overlapping
           Product: D
           Version: 1.057
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Matti Niemenmaa <> 
2010-03-20 10:06:59 PDT ---
Each of the following unions give the same error:

arst.d(1): Error: union arst.X overlapping initialization for struct X.y
arst.d(5): Error: union arst.Y overlapping initialization for struct Y.y
arst.d(9): Error: union arst.Z overlapping initialization for struct Z.y

union X {
    int x = void;
    int y = void;
union Y {
    int x = void;
    int y = 0;
union Z {
    int x = 0;
    int y = void;

Removing the "= void", these unions compile (except, for some reason, Y, but
that's a separate issue).

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

Reply via email to