Re: [PATCH] c++: ICE with pack indexing empty pack [PR117898]

2024-12-05 Thread Patrick Palka
On Wed, 4 Dec 2024, Marek Polacek wrote: > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > -- >8 -- > Here we ICE with a partially-substituted pack indexing. The pack > expanded to an empty pack, which we can't index. IIUC this can only happen when called from tsubst_pack_index

[PATCH] c++: ICE with pack indexing empty pack [PR117898]

2024-12-04 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- 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 make_pack_index. Other erroneous cases can wait until pack_index_ele