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

--- Comment #23 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <[email protected]>:

https://gcc.gnu.org/g:e1cf6f306d9b6e449c0ba9b3da314dc2f6220a84

commit r17-5096-ge1cf6f306d9b6e449c0ba9b3da314dc2f6220a84
Author: Jason Merrill <[email protected]>
Date:   Mon Oct 12 12:20:20 2026 -0400

    c++/modules: P1811 and member specialization [PR127787]

    A missed case in r17-4959: we were clearing DECL_INITIAL for a redefined
    specialization, leading to confusion later on.

            PR c++/127787
            PR c++/99000

    gcc/cp/ChangeLog:

            * pt.cc (check_explicit_specialization): Don't clobber a
redefinable
            imported definition.

    gcc/testsuite/ChangeLog:

            * g++.dg/modules/gmf-8.h: New test.
            * g++.dg/modules/gmf-8_a.C: New test.
            * g++.dg/modules/gmf-8_b.C: New test.

Reply via email to