[Bug c++/99811] ICE: tree check: accessed elt 2 of 'tree_vec' with 1 elts in tsubst_pack_expansion, at cp/pt.c:13002

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 14 08:04:51 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99811

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code
   Target Milestone|---                         |11.3
   Last reconfirmed|                            |2021-12-14
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
All reduced to:

template<typename T, typename U> concept C = sizeof(T) == 0;

template<typename T> void g5() {
[]() -> C<T> auto{ return T();  }();
}
template void g5<int>();

Confirmed.


More information about the Gcc-bugs mailing list