https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464
--- Comment #2 from Роман Санду <roma.sandu at gmail dot com> --- Here's a link to godbolt with the minimal reproducing test case: https://godbolt.org/z/5PoYd3sPs Note that the bug is present in both gcc trunk and gcc 12.2.