https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106412
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|WAITING |RESOLVED --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Arsen Zahray from comment #2) > Static > variable is supposed to be initialized before local variables on the first > call to the function No, that's not true. It's initialized when control flow reaches it. If that is after some local variables, then that's what happens. This is not a bug.