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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>:

https://gcc.gnu.org/g:7944753fad501194eb8a828d6b74270e79d14a4d

commit r11-6841-g7944753fad501194eb8a828d6b74270e79d14a4d
Author: Nathan Sidwell <nat...@acm.org>
Date:   Thu Jan 21 10:37:23 2021 -0800

    c++: Fix null this pointer [PR 98624]

    One may not use a null this pointer to invoke a static member
    function.  This fixes the remaining ubsan errors found with an
    ubsan bootstrap.

            PR c++/98624
            gcc/cp/
            * module.cc (depset::hash::find_dependencies): Add
            module arg.
            (trees_out::core_vals): Check state before calling
            write_location.
            (sort_cluster, module_state::write): Adjust
            find_dependencies call.

Reply via email to