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: nob...@puremagic.com ReportedBy: matti.niemenmaa+dbugzi...@iki.fi --- Comment #0 from Matti Niemenmaa <matti.niemenmaa+dbugzi...@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: -------