[Issue 3991] New: Void initializers in unions considered overlapping
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 20 10:07:02 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3991
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
AssignedTo: nobody at puremagic.com
ReportedBy: matti.niemenmaa+dbugzilla at iki.fi
--- Comment #0 from Matti Niemenmaa <matti.niemenmaa+dbugzilla at iki.fi> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list