[Bug libstdc++/85930] [8/9 Regression] Misaligned reference created in shared_ptr_base.h with -fno-rtti

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 4 22:35:00 GMT 2018


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Jun  4 22:34:39 2018
New Revision: 261174

URL: https://gcc.gnu.org/viewcvs?rev=261174&root=gcc&view=rev
Log:
PR libstdc++/85930 fix misaligned reference

        PR libstdc++/85930
        * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo>
        unconditionally. Remove redundant declaration.
        [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Align the static variable
        correctly.

Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/include/bits/shared_ptr_base.h


More information about the Gcc-bugs mailing list