Bug 11269 – [REG 2.064beta1] Union initialization on 64-bit plattforms

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-15T02:13:00Z
Last change time
2015-10-27T08:50:02Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
code
See also
https://issues.dlang.org/show_bug.cgi?id=15205

Comments

Comment #0 by code — 2013-10-15T02:13:07Z
The following code will only fail to compile for 64-bit windows. It works fine for 32-bit windows. This code used to work in dmd 2.063.2 and dmd 2.062 struct Atom { union { int i; struct { Atom* first, rest; } struct { uint localIndex; uint literalIndex; } } } void main(string[] args) { Atom a; }
Comment #1 by k.hara.pg — 2013-10-17T18:57:00Z
Repro case in both 32/64 bit platforms: struct Atom { union { int i; struct { ulong first, rest; } struct { uint localIndex; uint literalIndex; } } } void main() { Atom a; }
Comment #2 by k.hara.pg — 2013-10-19T06:08:49Z
Comment #3 by github-bugzilla — 2013-10-19T20:54:42Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/23162cbacee41ac9ece0135f2d986d388e32cdf5 fix Issue 11269 - Union initialization on 64-bit platforms https://github.com/D-Programming-Language/dmd/commit/bb45939a3d0f7bf52fd0193f8ed35f283c22257a Merge pull request #2681 from 9rnsr/fix11269 [REG2.064a] Issue 11269 - Union initialization on 64-bit platforms
Comment #4 by github-bugzilla — 2013-10-19T20:56:07Z
Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/106b7262f65c4642a3cf6bb73bb54dbcd81f0f28 Merge pull request #2681 from 9rnsr/fix11269 [REG2.064a] Issue 11269 - Union initialization on 64-bit platforms