]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/66927 (ICE in gfc_conf_procedure_call)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Sun, 25 Oct 2015 12:28:57 +0000 (13:28 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Sun, 25 Oct 2015 12:28:57 +0000 (13:28 +0100)
commitb8ac4f3b22887143eec7e51497e95ff7301631df
tree2bf4d8a03141715e2374e096c4386e41791de20e
parentf63df1373912b1c8b65e34e064594c0eb15153f9
re PR fortran/66927 (ICE in gfc_conf_procedure_call)

gcc/fortran/ChangeLog:

2015-10-25  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/66927
PR fortran/67044
* trans-array.c (build_array_ref): Modified call to
gfc_get_class_array_ref to adhere to new interface.
(gfc_conv_expr_descriptor): For one-based arrays that
are filled by a loop starting at one the start index of the
source array has to be mangled into the offset.
* trans-expr.c (gfc_get_class_array_ref): When the tree to get
the _data component is present already, add a way to supply it.
(gfc_copy_class_to_class): Allow to copy to a derived type also.
* trans-stmt.c (gfc_trans_allocate): Do not conv_expr_descriptor
for functions returning a class or derived object. Get the
reference instead.
* trans.h: Interface change of gfc_get_class_array_ref.

gcc/testsuite/ChangeLog:

2015-10-25  Andre Vehreschild  <vehre@gmx.de>

PR fortran/66927
PR fortran/67044
* gfortran.dg/allocate_with_source_10.f08: New test.
* gfortran.dg/allocate_with_source_11.f08: New test.
* gfortran.dg/class_array_15.f03: Changed count of expected
_builtin_frees to 11. One step of temporaries is spared, therefore
the allocatable component of that temporary is not to be freeed.

From-SVN: r229294
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_array_15.f03
This page took 0.0631 seconds and 5 git commands to generate.