https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97285
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang has fixed this on the their trunk. That is std::has_unique_object_representations_v<B> is true there.
pinskia at gcc dot gnu.org via Gcc-bugs Sat, 27 Nov 2021 15:05:48 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97285
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang has fixed this on the their trunk. That is std::has_unique_object_representations_v<B> is true there.