https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95107
--- Comment #9 from anlauf at gcc dot gnu.org --- The issue can be studied by playing with option -fmax-stack-var-size=n. -fno-automatic corresponds to n=0; using n=64 and higher lets the code compile. There's something weird going on here.