https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122169 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note without the pack index, GCC does the correct thing and the const is not lost.