https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120862

--- Comment #11 from uecker at gcc dot gnu.org ---
(In reply to uecker from comment #10)
> Created attachment 66080 [details]
> tentantive patch

Ok, this not quite right, but adding the conversion at the right place in the
FE fixes the problem. The issue seems to be that inlining later creates a copy
of an identical type and then useless_type_conversion_p is not happy (in case
they are TYPE_STRUCTURAL_EQUALITY_P).  So maybe the right place for the fix is
in tree-inline.cc but I am lost there.

Reply via email to