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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:469881efc4ad365dce3db26dab7d33f95d36f92f

commit r11-10640-g469881efc4ad365dce3db26dab7d33f95d36f92f
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Mar 14 16:32:31 2023 -0400

    c++: variable tmpl partial specialization [PR108468]

    Generally we expect TPARMS_PRIMARY_TEMPLATE to be set, but sometimes it
    isn't for partial instantiations.  This ought to be improved, but it's
    trivial to work around it in this case.

            PR c++/108468

    gcc/cp/ChangeLog:

            * pt.c (unify_pack_expansion): Check that TPARMS_PRIMARY_TEMPLATE
            is non-null.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1y/var-templ78.C: New test.

Reply via email to