https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118285
--- Comment #1 from Giuseppe D'Angelo <dangelog at gmail dot com> --- As noted PR103924, the testcase is actually accepted by GCC 13 (in C++23 mode), so this looks like a regression. https://gcc.godbolt.org/z/zMK3ceE5M