https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106071
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org Last reconfirmed| |2022-06-24 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from kargl at gcc dot gnu.org --- (In reply to han.wu from comment #0) > two layer where work ok, why single where work error? > Clearly a bug due to calling a function with side effects. While valid, it is a questionable programming style.