https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059
--- Comment #2 from LIU Hao <lh_mouse at 126 dot com> --- Reconfirmed with all the following versions: * g++-10 (Ubuntu 10.4.0-4ubuntu1~22.04) 10.4.0 * g++-11 (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 * g++-12 (Ubuntu 12.2.0-3ubuntu1~22.04) 12.2.0