https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112490
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Well clang does not implement CWG2369 resolution. Which GCC implemented in r11-2774 . So it might be that is the reason why GCC rejects it and clang does not.