https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106902
--- Comment #9 from Lawrence Lee <jhllawrence963 at gmail dot com> --- Thank you Alexander for the recommendation. I don't know if this helps, but I updated the sample code to make the issue reproducible with the GCC trunk build available on godbolt.org. I just introduced an unused function parameter.