https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107931 --- Comment #1 from Tomasz Konojacki <me at xenu dot pl> --- (In reply to Tomasz Konojacki from comment #0) > The error below occurs only with -Od. Sorry, -Og. PS. It seems that moving the definition of fun4 to the first line makes the error disappear.