[Bug c++/94100] ICE: tree check: accessed elt 1 of 'tree_vec' with 0 elts in tsubst_pack_expansion, at cp/pt.c:12765
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94100 --- Comment #2 from Hubert Tong --- The following ICEs in a similar fashion: internal compiler error: tree check: accessed elt 2 of 'tree_vec' with 1 elts in tsubst, at cp/pt.c:15334 ### SOURCE: template struct ValListWithTypes { template struct WithVals { using TypeList = ValListWithTypes; }; }; template struct Widget; template struct Widget> { template struct Impl {}; }; template template struct Widget>::Impl< typename ValListWithTypes::template WithVals> {}; int main(void) { Widget::WithVals<0>>::Impl<> impl; }
[Bug c++/94100] ICE: tree check: accessed elt 1 of 'tree_vec' with 0 elts in tsubst_pack_expansion, at cp/pt.c:12765
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94100 Marek Polacek changed: What|Removed |Added Last reconfirmed||2020-03-09 CC||mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- The ICE started with r0-128638-gb0ff7fe1d223260aea5b7dc3f36892aa57d43c77 -- a while ago. Before that: 94100.C:19:24: error: no matching function for call to ‘Foo::foo()’ Foo::foo(); ^