[Issue 17857] T.alignof ignores explicit align(N) type alignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 27 22:37:36 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17857

--- Comment #1 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/9e3fad9ea3e955b10ec80439247e50fc9417f77d
T.alignof: Respect explicit align(N) type alignment

It was previously the natural type alignment, defined as the maximum of
the field alignments for an aggregate. Make sure an explicit `align(N)`
overrides it.

fix Issue 17857

https://github.com/dlang/dmd/commit/30f0fe23961a194c9789ab32368ef50b4257c0dd
Merge pull request #7164 from kinke/alignof

fix Issue 17857 - T.alignof ignores explicit align(N) type alignment

--


More information about the Digitalmars-d-bugs mailing list