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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:8e3230f4fed0d41e790d68c2534c057911bab35c

commit r16-3832-g8e3230f4fed0d41e790d68c2534c057911bab35c
Author: Patrick Palka <ppa...@redhat.com>
Date:   Fri Sep 12 14:21:25 2025 -0400

    c++: pack indexing is a non-deduced context [PR121795]

    We weren't explicitly treating a pack index specifier as a non-deduced
    context (as per [temp.deduct.type]/5), leading to an ICE for the first
    testcase below.

            PR c++/121795

    gcc/cp/ChangeLog:

            * pt.cc (unify) <case PACK_INDEX_TYPE>: New non-deduced context
            case.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp26/pack-indexing17.C: New test.
            * g++.dg/cpp26/pack-indexing17a.C: New test.

    Reviewed-by: Marek Polacek <pola...@redhat.com>
    Reviewed-by: Jason Merrill <ja...@redhat.com>

Reply via email to