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

--- Comment #6 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Thu Feb 11 16:48:45 2016
New Revision: 233351

URL: https://gcc.gnu.org/viewcvs?rev=233351&root=gcc&view=rev
Log:
gcc/fortran/ChangeLog:

2016-02-11  Andre Vehreschild  <ve...@gcc.gnu.org>

        PR fortran/69296
        * gfortran.h: Added flag to gfc_association_list indicating that
        the rank of an associate variable has been guessed only.
        * parse.c (parse_associate): Set the guess flag mentioned above
        when guessing the rank of an expression.
        * resolve.c (resolve_assoc_var): When the rank has been guessed,
        make sure, that the guess was correct else overwrite with the actual
        rank.
        * trans-stmt.c (trans_associate_var): For subref_array_pointers in
        class objects, take the span from the _data component.

gcc/testsuite/ChangeLog:

2016-02-11  Andre Vehreschild  <ve...@gcc.gnu.org>

        PR fortran/69296
        * gfortran.dg/associate_19.f03: New test.
        * gfortran.dg/associate_20.f03: New test.



Added:
    trunk/gcc/testsuite/gfortran.dg/associate_19.f03
    trunk/gcc/testsuite/gfortran.dg/associate_20.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/parse.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to