[PATCH] Fix PR61335

Tobias Burnus tobias.burnus@physik.fu-berlin.de
Tue Jun 17 10:25:00 GMT 2014


Uros Bizjak wrote:
> Attached patch initializes problematic array to zero instead of
> uninitialized value.
>
> 2014-06-17  Uros Bizjak  <ubizjak@gmail.com>
>
>     * gfortran.dg/pr61335.f90 (cp_unit_create): Initialize
>     unit_id and kind_id to zero.
>
> Tested on alphaev68-linux-gnu and x86_64-linux-gnu.
> OK for mainline?

Looks good to me, is obvious and shouldn't affect the test case.

In particular the variables in questions aren't used in the
code after their initialization with an undefined implicitly
declared variable, which is also otherwise unused.

Tobias



More information about the Fortran mailing list