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

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

https://gcc.gnu.org/g:1487310d2707203e0f9b5b1794daf1f381e3e622

commit r14-11217-g1487310d2707203e0f9b5b1794daf1f381e3e622
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Fri Jan 17 00:23:45 2025 +0100

    d: Fix record layout of compiler-generated TypeInfo_Class [PR115249]

    In r14-8766, the layout of TypeInfo_Class changed in the runtime
    library, but didn't get reflected in the compiler-generated data,
    causing a corruption of runtime type introspection on BigEndian targets.

    This adjusts the size of the `ClassFlags' field from uint to ushort, and
    adds a new ushort `depth' field in the space where ClassFlags used to
    occupy.

            PR d/115249

    gcc/d/ChangeLog:

            * typeinfo.cc (create_tinfo_types): Update internal Typenfo
            representation.
            (TypeInfoVisitor::visit (TypeInfoClassDeclaration *)): Likewise.

    (cherry picked from commit d740694ff89ab5c78652a1f66b058ca16634ddbc)

Reply via email to