https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125208
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Wonder why cp_tree_equal for REFLECT_EXPR doesn't just compare_reflections.
If for some reason it can't, then
case REFLECT_EXPR:
{
if (REFLECT_EXPR_KIND (t1) != REFLECT_EXPR_KIND (t2))
return false;
tree h1 = REFLECT_EXPR_HANDLE (t1);
tree h2 = REFLECT_EXPR_HANDLE (t2);
if (!cp_tree_equal (h1, h2))
return false;
/* ^^alias represents the alias itself, not the underlying type. */
if (TYPE_P (h1)
&& (typedef_variant_p (h1) || typedef_variant_p (h2))
&& TYPE_NAME (h1) != TYPE_NAME (h2))
return false;
return true;
}
then it should be at least doing maybe_get_first_fn, and
maybe_update_function_parm,
and for REFLECT_ANNOTATION TREE_VALUE comparison.