[Bug fortran/77517] ICE in conv_intrinsic_move_alloc, at fortran/trans-intrinsic.c:9517
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Fri Dec 2 21:03:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
--- Comment #6 from Harald Anlauf <anlauf at gmx dot de> ---
Extending the check in comment #5 to
if (from->ts.type == BT_CLASS && to->ts.type != BT_CLASS ||
to->ts.type == BT_CLASS && from->ts.type != BT_CLASS)
{
gfc_error ("The FROM and TO arguments at %L are incompatible",
&to->where);
return false;
}
also avoids the ICE for
program p
class(*), allocatable :: a, b
call move_alloc (a, b)
contains
subroutine b
end
end
More information about the Gcc-bugs
mailing list