[Bug c++/122169] Qualifiers (const/volatile) added to a type pack index is lost

2026-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122169

--- Comment #7 from GCC Commits  ---
The releases/gcc-15 branch has been updated by Patrick Palka
:

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

commit r15-10789-ga423c594989e10be8dabe3d7175dfda3aac49d20
Author: Patrick Palka 
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 
Reviewed-by: Jason Merrill 
(cherry picked from commit 6385a3582c0b6b30479bc68f7d2b74e327ec44d7)

[Bug c++/122169] Qualifiers (const/volatile) added to a type pack index is lost

2026-02-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122169

Patrick Palka  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||ppalka at gcc dot gnu.org
   Assignee|mpolacek at gcc dot gnu.org|ppalka at gcc dot 
gnu.org
   Target Milestone|--- |15.3
 Status|ASSIGNED|RESOLVED

--- Comment #8 from Patrick Palka  ---
Fixed for 15.3/16, thanks for the report.

[Bug c++/122169] Qualifiers (const/volatile) added to a type pack index is lost

2026-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122169

--- Comment #6 from GCC Commits  ---
The master branch has been updated by Patrick Palka :

https://gcc.gnu.org/g:6385a3582c0b6b30479bc68f7d2b74e327ec44d7

commit r16-7329-g6385a3582c0b6b30479bc68f7d2b74e327ec44d7
Author: Patrick Palka 
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 
Reviewed-by: Jason Merrill 

[Bug c++/122169] Qualifiers (const/volatile) added to a type pack index is lost

2025-10-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122169

Marek Polacek  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org
 CC||mpolacek at gcc dot gnu.org
 Status|NEW |ASSIGNED

--- Comment #5 from Marek Polacek  ---
Pack indexing -> mine for stage 3.