[Bug c++/98944] [modules] Failed to read compiled module with a non-exported partition.

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 9 16:17:19 GMT 2021


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

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

https://gcc.gnu.org/g:92941cea2f05a8cf79fc71aa39fa948dcfb82d7a

commit r11-7150-g92941cea2f05a8cf79fc71aa39fa948dcfb82d7a
Author: Nathan Sidwell <nathan@acm.org>
Date:   Tue Feb 9 08:11:58 2021 -0800

    c++: Fix indirect partitions [PR 98944]

    The most recent reimplementation of module loading initialization
    changed the behaviour of setting an import's location, and broke some
    partition handling.

            PR c++/98944
            gcc/cp/
            * module.cc (module_state::is_rooted): Rename to ...
            (module_state::has_location): ... here.  Adjust callers.
            (module_state::read_partitions): Adjust validity check.
            Don't overwrite a known location.
            gcc/testsuite/
            * g++.dg/modules/pr98944_a.C: New.
            * g++.dg/modules/pr98944_b.C: New.
            * g++.dg/modules/pr98944_c.C: New.
            * g++.dg/modules/pr98944_d.C: New.


More information about the Gcc-bugs mailing list