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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Patrick Palka
<[email protected]>:

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

commit r15-10789-ga423c594989e10be8dabe3d7175dfda3aac49d20
Author: Patrick Palka <[email protected]>
Date:   Thu Feb 5 09:13:42 2026 -0500

    c++: cv-qualified pack index propagation [PR122169]

    Since type pack indexes can be cv-qualified, we need to propagate their
    qualifiers when substituting them.

            PR c++/122169

    gcc/cp/ChangeLog:

            * pt.cc (tsubst_pack_index): Propagate cv-qualifiers of
            PACK_INDEX_TYPE.

    gcc/testsuite/ChangeLog:

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

    Reviewed-by: Marek Polacek <[email protected]>
    Reviewed-by: Jason Merrill <[email protected]>
    (cherry picked from commit 6385a3582c0b6b30479bc68f7d2b74e327ec44d7)

Reply via email to