Thread overview
[Issue 17857] T.alignof ignores explicit align(N) type alignment
Jun 08, 2021
Dlang Bot
September 27, 2017
https://issues.dlang.org/show_bug.cgi?id=17857

--- Comment #1 from github-bugzilla@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

--
October 16, 2017
https://issues.dlang.org/show_bug.cgi?id=17857

--- Comment #2 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

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

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

--
June 08, 2021
https://issues.dlang.org/show_bug.cgi?id=17857

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12646 "[dmd-cxx] T.alignof: Respect explicit align(N) type alignment" was merged into dmd-cxx:

- 1290f31f512f0734398a423bde96f1d9b3dbdea0 by Martin:
  [dmd-cxx] 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/pull/12646

--