diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2018-05-20 10:54:24 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2018-05-20 10:54:24 +0000 |
commit | a17b4d4c608e1336cbde0b7035efffe9fadadd83 (patch) | |
tree | d1fcb72506a6ebb36788314f1ac28521533dae8e /gcc | |
parent | 9ad8aaf839866994905bf577bcf2a1dee1b8a01a (diff) | |
download | gcc-a17b4d4c608e1336cbde0b7035efffe9fadadd83.zip gcc-a17b4d4c608e1336cbde0b7035efffe9fadadd83.tar.gz gcc-a17b4d4c608e1336cbde0b7035efffe9fadadd83.tar.bz2 |
re PR fortran/82275 (gfortran rejects valid & accepts invalid reference to dimension-remapped type SELECT TYPE selector)
2018-05-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82275
Correcting ChangeLogs
* match.c (gfc_match_type_spec): Go through the array ref and
decrement 'rank' for every dimension that is an element.
2018-05-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82275
Correcting ChangeLogs
* gfortran.dg/select_type_42.f90: New test.
From-SVN: r260416
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 20 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 15 |
2 files changed, 26 insertions, 9 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 8e6c933..c5e1aa8 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,10 +1,22 @@ 2018-05-20 Paul Thomas <pault@gcc.gnu.org> + PR fortran/80657 + * resolve.c (flag_fn_result_spec): Use the 'sym' argument to + test for self refs to the function result in the character len + expression. If a self reference is found, emit an error and + return true. + (resolve_fntype): Use the function symbol in the calls to the + above. + +2018-05-20 Paul Thomas <pault@gcc.gnu.org> + PR fortran/49636 * trans-array.c (gfc_get_array_span): Renamed from 'get_array_span'. (gfc_conv_expr_descriptor): Change references to above. * trans-array.h : Add prototype for 'gfc_get_array_span'. + * trans-intrinsic.c (gfc_conv_associated): Add pre and post + blocks for 'arg1'. * trans-stmt.c (trans_associate_var): If the associate name is a subref array pointer, use gfc_get_array_span for the span. @@ -17,9 +29,11 @@ 2018-05-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/82923 - * gfortran.dg/allocate_assumed_charlen_4.f90: New test. Note - that the patch fixes PR66694 & PR82617, although the testcases - are not explicitly included. + PR fortran/66694 + PR fortran/82617 + * trans-array.c (gfc_alloc_allocatable_for_assignment): Set the + charlen backend_decl of the rhs expr to ss->info->string_length + so that the value in the current scope is used. 2018-05-13 Steven G. Kargl <kargl@gcc.gnu.org> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b919b84..7866b35 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,21 +1,24 @@ 2018-05-20 Paul Thomas <pault@gcc.gnu.org> + PR fortran/80657 + * gfortran.dg/char_result_18.f90: New test. + +2018-05-20 Paul Thomas <pault@gcc.gnu.org> + PR fortran/49636 * gfortran.dg/associate_38.f90: New test. 2018-05-20 Paul Thomas <pault@gcc.gnu.org> - PR fortran/82923 + PR fortran/82275 * gfortran.dg/select_type_42.f90: New test. 2018-05-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/82923 - PR fortran/66694 - PR fortran/82617 - * trans-array.c (gfc_alloc_allocatable_for_assignment): Set the - charlen backend_decl of the rhs expr to ss->info->string_length - so that the value in the current scope is used. + * gfortran.dg/allocate_assumed_charlen_4.f90: New test. Note + that the patch fixes PR66694 & PR82617, although the testcases + are not explicitly included. 2018-05-18 Kito Cheng <kito.cheng@gmail.com> |