c++: Fix indirect partitions [PR 98944]

Nathan Sidwell nathan@acm.org
Tue Feb 9 16:16:16 GMT 2021



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.


-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr98944.diff
Type: text/x-patch
Size: 4259 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210209/5c08de5f/attachment.bin>


More information about the Gcc-patches mailing list