https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189
--- Comment #10 from Jiarui Hong <jerryfromearth at gmail dot com> --- Please note that there seems to be two issues here that affect different versions of gcc: (From the comment of g...@pkh.me) https://godbolt.org/z/xc59TM This fails in 9.3.0 but works in 10.1.0. (From the comment of Martin Sebor) https://godbolt.org/z/9Kh1Tn This fails in both 9.3.0 and 10.1.0. Maybe the difference is caused by some other feature/bugfix that is present in 10.1.0 but not in 9.3.0. Anyway, I just want to highlight this and hope it can help with getting a proper fix for this bug. Thanks.