[Patch, fortran] PR87284 - [7/8/9 Regression] Allocation of class arrays with mold results in "conditional jump or move depends on uninitialised value"

Paul Richard Thomas paul.richard.thomas@gmail.com
Thu Sep 13 19:51:00 GMT 2018


The above has been fixed as 'obvious' on all three branches. Revisions
264249, 264251 and 264288.

Cheers

Paul

2018-09-13  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/87284
    * trans-expr.c (gfc_trans_class_init_assign): Access to
    to array elements of the dynamic type requires that the array
    reference be added to the class expression and not the _data
    component, unlike scalar expressions.

2018-09-13  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/87284
    * gfortran.dg/allocate_with_mold_2.f90: New test.



More information about the Fortran mailing list