[Bug c++/109648] ICE: tree check: expected type_pack_expansion or expr_pack_expansion, have error_mark in tsubst_pack_expansion, at cp/pt.cc:13551 since r13-272-gdc6c96f0707aba

2024-04-27 Thread kacper.slominski72 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109648

Kacper Słomiński  changed:

   What|Removed |Added

 CC||kacper.slominski72 at gmail 
dot co
   ||m

--- Comment #2 from Kacper Słomiński  ---
Different test case with the same ICE:

int foo(auto...) { return 0; }

template 
void bar() {
[]() {
return foo(({ Us{}; 1; })...);
}.template operator()();
}

int main() {
bar();
}

[Bug c++/109648] ICE: tree check: expected type_pack_expansion or expr_pack_expansion, have error_mark in tsubst_pack_expansion, at cp/pt.cc:13551 since r13-272-gdc6c96f0707aba

2023-05-02 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109648

Martin Liška  changed:

   What|Removed |Added

 CC||marxin at gcc dot gnu.org,
   ||ppalka at gcc dot gnu.org
   Last reconfirmed||2023-05-02
Summary|ICE: tree check: expected   |ICE: tree check: expected
   |type_pack_expansion or  |type_pack_expansion or
   |expr_pack_expansion, have   |expr_pack_expansion, have
   |error_mark in   |error_mark in
   |tsubst_pack_expansion, at   |tsubst_pack_expansion, at
   |cp/pt.cc:13551  |cp/pt.cc:13551 since
   ||r13-272-gdc6c96f0707aba
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Started with r13-272-gdc6c96f0707aba.