diff options
author | José Rui Faustino de Sousa <jrfsousa@gmail.com> | 2020-06-11 14:14:30 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:12:13 -0300 |
commit | cc5dde954eeb825cc9a743b67763ba5807194f2b (patch) | |
tree | 22da7870ce07620756025179d1476129372f26c6 /gcc/fortran/expr.c | |
parent | 17baf5827f5ebc1e94e3a603c480dda610558501 (diff) | |
download | gcc-cc5dde954eeb825cc9a743b67763ba5807194f2b.zip gcc-cc5dde954eeb825cc9a743b67763ba5807194f2b.tar.gz gcc-cc5dde954eeb825cc9a743b67763ba5807194f2b.tar.bz2 |
Wrong array section bounds when passing to an intent-in pointer dummy.
Add code to allow for the creation a new descriptor for array
sections with the correct one based indexing.
Rework the generated descriptors indexing (hopefully) fixing the
wrong offsets generated.
gcc/fortran/ChangeLog:
2020-06-11 José Rui Faustino de Sousa <jrfsousa@gmail.com>
PR fortran/52351
PR fortran/85868
* trans-array.c (gfc_conv_expr_descriptor): Enable the
creation of a new descriptor with the correct one based
indexing for array sections. Rework array descriptor
indexing offset calculation.
gcc/testsuite/ChangeLog:
2020-06-11 José Rui Faustino de Sousa <jrfsousa@gmail.com>
PR fortran/52351
PR fortran/85868
* gfortran.dg/coarray_lib_comm_1.f90: Adjust match test for
the newly generated descriptor.
* gfortran.dg/PR85868A.f90: New test.
* gfortran.dg/PR85868B.f90: New test.
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions