https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110730
--- Comment #5 from Shuangcheng Ni <nishuangcheng at gmail dot com> --- Thanks for the bug fix. TBH it is hard to pinpoint the issue, as the code triggers a runtime error rather than a linkage error.