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

--- Comment #4 from Harald Anlauf <anlauf at gcc dot gnu.org> ---
(In reply to Harald Anlauf from comment #3)
> Could it be that gfc_conv_is_contiguous_expr sets
> 
>   argse.data_not_needed = 1;
>   gfc_conv_expr_descriptor (&argse, arg);
> 
> In principle the TARGET attribute then should not make a difference.

This ICEs here too on trunk:

subroutine sub2(dd)
  character(len=4), target :: dd(:,:,:,:)
  if (size (dd(:,[1],:,:)) > 0) stop 1
end subroutine

Reply via email to