]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
re PR fortran/69296 ([F03] Problem with associate and vector subscript)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 11 Feb 2016 16:48:45 +0000 (17:48 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 11 Feb 2016 16:48:45 +0000 (17:48 +0100)
commit76fe932be367d60f45e8a69a83d3efcf271f6e63
tree4f0f282a748ce12fc4fc2f005187201258537e3f
parent564c4d4bb3eea5e84b04af6d8404ca96b0a65807
re PR fortran/69296 ([F03] Problem with associate and vector subscript)

gcc/fortran/ChangeLog:

2016-02-11  Andre Vehreschild  <vehre@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  <vehre@gcc.gnu.org>

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

From-SVN: r233351
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/parse.c
gcc/fortran/resolve.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_19.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/associate_20.f03 [new file with mode: 0644]