https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87494
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't think this is techincally a bug. It might be a missed optimization but not a bug. You still need a definition even for constexpr if used outside of a constexpr usage IIRC.