https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107840
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With the testcase that does not use C23 features (which was only implemented in GCC 13), we can get the ICE happening all the way back to at least GCC 6 with -fchecking. GCC 5 didn't have -fchecking so I cannot check further back.