https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101588
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-02-09 CC| |mpolacek at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- This came up again in bug 107079. The static_assert should pass after fixing bug 107079 but doesn't because we don't fully implement the -- a temporary object of non-volatile const-qualified literal type whose lifetime is extended ([class.temporary]) to that of a variable that is usable in constant expressions, or bullet. struct X { const X* x = this; }; constexpr const X& x = X{}; static_assert(x.x == &x);