This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, fortran] PR69385 - [6 regression] ICE on valid with -fcheck=mem


Dear All,

The initial report concerns initialization assignments that should be
excluded from the check for assignment of scalars to unallocated
arrays. This part is so trivial that it does not require a test. On
the other hand, the block that implemented the check was plain and
simple wrong and the rest of the patch corrects this. It is commented
such as to be fully comprehensible.

Bootstrapped and regtested on FC21/x86_64 - OK for trunk and for
5-branch when all the wrinkles (PR69422 and 69423) are sorted out?

Cheers

Paul

2016-01-25  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/69385
    * trans-expr.c (gfc_trans_assignment_1): Exclude initialization
    assignments from check on assignment of scalars to unassigned
    arrays and correct wrong code within the corresponding block.

2015-01-25  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/69385
    * gfortran.dg/allocate_error_6.f90: New test.

Attachment: submit.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]