Committed as rev. 269227 after confirmation by Dominique:

https://gcc.gnu.org/ml/fortran/2019-02/msg00229.html

Thanks for the quick review.

Harald

@Dominique: I am unable to close PRs in bugzilla that I do not own
due to insufficient privileges.

On 02/25/19 22:49, Harald Anlauf wrote:
> Rev. 269177 uncovered a latent issue in TRANSFER when the MOLD argument
> had storage size 0, resulting in an infinite loop.  The attached patch
> rejects illegal cases and handles the case where storage size of both
> SOURCE and MOLD are 0.  It also verifies proper simplification for
> some cases, some of which were not always properly handled before.
> 
> Thanks to Dominique for the heads-up which I initially missed.
> 
> Regtested on x86_64-pc-linux-gnu; the testcase is based on the report
> and slightly extended.
> 
> OK for trunk?
> 
> Thanks, and sorry for any inconvenience caused,
> Harald
> 
> 2019-02-25  Harald Anlauf  <anl...@gmx.de>
> 
>       PR fortran/89492
>       * check.c (gfc_calculate_transfer_sizes): Handle cases where
>       storage size of elements of MOLD is 0.
> 
> 2019-02-25  Harald Anlauf  <anl...@gmx.de>
> 
>       PR fortran/89492
>       * gfortran.dg/pr89492.f90: New test.
> 

Reply via email to