https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115778
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |11.1.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > The same code has no error in GCC 14.1. Well the assert is under checking: /* Verify the parameter we found has a valid index. */ if (flag_checking) { tree parms = ftpi->ctx_parms; while (TMPL_PARMS_DEPTH (parms) > level) parms = TREE_CHAIN (parms); if (int len = TREE_VEC_LENGTH (TREE_VALUE (parms))) gcc_assert (index < len); } It ICEs with -fchecking starting in GCC 11.1.0. But I don't know if it is a regression or it was just the checking that was added then ...