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

--- Comment #1 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:4d66685e49d20e0c7a87c5fa0757c7eb63ffcdaa

commit r11-7524-g4d66685e49d20e0c7a87c5fa0757c7eb63ffcdaa
Author: Nathan Sidwell <nat...@acm.org>
Date:   Fri Mar 5 05:25:54 2021 -0800

    c++: instantiating imported specializations [PR 99389]

    When an incomplete class specialization is imported, and is completed
    by instantiation, we were failing to mark the instantiation, and thus
    didn't stream it out.  Leading to errors in importing as we had
    members of an incomplete type.

            PR c++/99389
            gcc/cp/
            * pt.c (instantiate_class_template_1): Set instantiating module
            here.
            gcc/testsuite/
            * g++.dg/modules/pr99389_a.H: New.
            * g++.dg/modules/pr99389_b.C: New.
            * g++.dg/modules/pr99389_c.C: New.

Reply via email to