https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120992
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- /* At this point both operands should have the same type, because they are already converted to RESULT_TYPE. Use TYPE_MAIN_VARIANT since typedefs can confuse us. */ tree top0 = TYPE_MAIN_VARIANT (type); tree top1 = TYPE_MAIN_VARIANT (TREE_TYPE (op1)); gcc_checking_assert (lang_hooks.types_compatible_p (top0, top1));