Bug 16466 – Alignment of reals inside structs on 32 bit OSX should be 16, not 8

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2016-09-05T04:56:00Z
Last change time
2016-10-01T11:48:40Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2016-09-05T04:56:08Z
The following fails on OSX 32 bit: ------------------------------ import core.stdc.stdio; struct S { real r; } int main() { real r; printf("S.alignof: %x, r.alignof: %x\n", S.alignof, r.alignof); assert(S.alignof == r.alignof); return 0; } ------------------------------- S.alignof: 8, r.alignof: 10 [email protected](13): Assertion failure
Comment #1 by bugzilla — 2016-09-05T05:15:34Z
Comment #2 by github-bugzilla — 2016-09-14T01:53:50Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e4935fb9f3b779792ee8c0d300db8e83358b27a6 fix Issue 16466 - Alignment of reals inside structs on 32 bit OSX should be 16, not 8 https://github.com/dlang/dmd/commit/9f5998759917629d2aa941d48fd32b5c1445b2fc Merge pull request #6109 from WalterBright/fix16466 fix Issue 16466 - Alignment of reals inside structs on 32 bit OSX sho…
Comment #3 by github-bugzilla — 2016-10-01T11:48:40Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e4935fb9f3b779792ee8c0d300db8e83358b27a6 fix Issue 16466 - Alignment of reals inside structs on 32 bit OSX should be 16, not 8 https://github.com/dlang/dmd/commit/9f5998759917629d2aa941d48fd32b5c1445b2fc Merge pull request #6109 from WalterBright/fix16466