https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109883
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Cannot reproduce for me. Note that in this case GCC optimizes the entire function call away (see https://godbolt.org/z/968bPTvh9) even with -O0 so I can see no way how this will lead to a runtime error. And GCC for aarch64-darwin target (i. e. "macOS 13.3.1 on M1") is not a part of this project, so are you using another fork?