https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109448
--- Comment #1 from jinci kang <jincikang at gmail dot com> --- This problem occurs under GCC12 and when compiling optimization is turned on, and only if the template T type is the empty type.
jincikang at gmail dot com via Gcc-bugs Fri, 07 Apr 2023 22:14:48 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109448
--- Comment #1 from jinci kang <jincikang at gmail dot com> --- This problem occurs under GCC12 and when compiling optimization is turned on, and only if the template T type is the empty type.