https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123351
--- Comment #5 from maic <gnu.ojxq8 at dralias dot com> --- Thx for landing the fix in trunk :) Just for fun, I did a bisect using the "UB code reproducer" attachment, leading to commit 818e305ea692ebc6578fb40881887d45382f876b, which is in 12.1. I've also confirmed that the fix commit c6085ca0ed4cef3bcf4eb382cb71e44219c10f6e backported on top of that commit fixes it.
