http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46196
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #6 from Mikael Morin <mikael at gcc dot gnu.org> 2010-10-28
21:58:48 UTC ---
(In reply to comment #5)
> I'll do it. Meanwhile I am puzzled by the patch. My understanding of
> compare_type_rank and compare_type_rank_if is that these tests should be
> symmetric: test(A,B)==test(B,A). So if test(A,B)||test(B,A) changes something
> it means that the tests are actually asymmetric. This asymmetry seems buggy.
> Looking at gcc/fortran/interface.c, I see at lines 447 to 458:
> [...]
> Should not this be
> [...]
> ???
The code is not executed here (it should not at least ;-) ): types without the
sequence attribute. But there is indeed something to fix here. You can propose
your patch to the list.
For the asymmetry, I see gfc_compare_types and gfc_type_compatible as possible
causes too.