https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100935

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Iain Buclaw
<ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:c6c3ed60276b842114aefce54d73e30e578fdd6d

commit r11-8535-gc6c3ed60276b842114aefce54d73e30e578fdd6d
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Wed Jun 9 19:37:22 2021 +0200

    d: Respect explicit align(N) type alignment (PR100935)

    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.

    gcc/d/ChangeLog:

            PR d/100935
            * dmd/mtype.c (Type::getProperty): Prefer explicit alignment over
            natural alignment for alignof property.

    gcc/testsuite/ChangeLog:

            PR d/100935
            * gdc.test/compilable/aggr_alignment.d: Add test cases.

    (cherry picked from commit 04fea2d66bd680beb1a204e62f2f459307000813)

Reply via email to