Bug 18459 – The static array ABI doesn't match the struct ABI

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-18T22:28:04Z
Last change time
2018-03-31T06:52:40Z
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2018-02-18T22:28:04Z
Although it is supposed to. For example, int[3]; struct S { int a,b,c; } struct T { int[3] a; } should all be the same when being passed/returned to/from functions.
Comment #1 by bugzilla — 2018-02-18T22:35:09Z
Comment #2 by github-bugzilla — 2018-03-31T06:52:39Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/820b5c8a612dcb862aad1ca32545a186f2e87b6c fix Issue 18459 - The static array ABI doesn't match the struct ABI https://github.com/dlang/dmd/commit/56b717c7a6e97db2b8d184c5a17286c67988c8b1 Merge pull request #7912 from WalterBright/fix18459 fix Issue 18459 - The static array ABI doesn't match the struct ABI merged-on-behalf-of: Iain Buclaw <[email protected]>