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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathaniel Shead <nsh...@gcc.gnu.org>:

https://gcc.gnu.org/g:6aba48a8cc128e54ee243d451ac9a843ff41c4f9

commit r15-4622-g6aba48a8cc128e54ee243d451ac9a843ff41c4f9
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Thu Oct 24 18:10:52 2024 +1100

    c++/modules: Propagate some missing flags on type definitions

    Noticed while testing my fix for PR c++/113814.  Not all of these are
    easily testable but I've tested a couple that were straight-forward.

    For consistency also adds a new TYPE_WARN_IF_NOT_ALIGN_RAW flag to match
    the decl version Nathan added.

    gcc/cp/ChangeLog:

            * module.cc (trees_in::read_class_def): Propagate some missing
            flags from the streamed-in definition.

    gcc/ChangeLog:

            * tree.h (TYPE_WARN_IF_NOT_ALIGN_RAW): New accessor.
            (TYPE_WARN_IF_NOT_ALIGN): Use it.
            (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.

    gcc/testsuite/ChangeLog:

            * g++.dg/modules/class-10_a.H: New test.
            * g++.dg/modules/class-10_b.C: New test.

    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>

Reply via email to