https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106731
--- Comment #11 from federico <federico.perini at gmail dot com> --- Thank you. I can confirm the patch works. I thought that, while fixing the issue, removing the assert was not the best solution as automatic arrays are not supposed to be static. My bad. Happy holidays, Federico