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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 8 12:54:47 UTC 2021


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

--- Comment #3 from Dlang Bot <dlang-bot at 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

--


More information about the Digitalmars-d-bugs mailing list