https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96515
--- Comment #2 from mauro russo <ing.russomauro at gmail dot com> --- Sorry for not having realized you specified "ill-formed" in your title. I was here while I was looking for another bug. Anyway, your ICE is still there in gcc 14.2 .