https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111929
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Better reduced testcase: ``` template <int> void f(__SIZE_TYPE__ var) { new int[var + 2]; } ``` And yes if you change f into an non-template, there is no crash.