https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123790
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2026-01-23
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed. I guess we need something similar to what I added recently:
/* This can happen for std::meta::info(^^int) where the cast has no
meaning. */
if (REFLECTION_TYPE_P (type) && REFLECT_EXPR_P (op))
{
r = op;
break;
}
but with
if (NULLPTR_TYPE_P (type) && null_ptr_cst_p (op))