aboutsummaryrefslogtreecommitdiff
path: root/gcc/early-remat.cc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2024-12-04 16:58:59 -0500
committerMarek Polacek <polacek@redhat.com>2024-12-05 20:12:02 -0500
commitafeef7f0d3537cd978931a5afcbd3d91c144bfeb (patch)
treedcafb1e30d048679d9ce1cc193be1cc701a706f5 /gcc/early-remat.cc
parent3ac3093756cd00f50e63e8dcde4d278606722105 (diff)
downloadgcc-afeef7f0d3537cd978931a5afcbd3d91c144bfeb.zip
gcc-afeef7f0d3537cd978931a5afcbd3d91c144bfeb.tar.gz
gcc-afeef7f0d3537cd978931a5afcbd3d91c144bfeb.tar.bz2
c++: ICE with pack indexing empty pack [PR117898]
Here we ICE with a partially-substituted pack indexing. The pack expanded to an empty pack, which we can't index. It seems reasonable to detect this case in tsubst_pack_index, even before we substitute the index. Other erroneous cases can wait until pack_index_element where we have the index. PR c++/117898 gcc/cp/ChangeLog: * pt.cc (tsubst_pack_index): Detect indexing an empty pack. gcc/testsuite/ChangeLog: * g++.dg/cpp26/pack-indexing2.C: Adjust. * g++.dg/cpp26/pack-indexing12.C: New test.
Diffstat (limited to 'gcc/early-remat.cc')
0 files changed, 0 insertions, 0 deletions