re PR fortran/82275 (gfortran rejects valid & accepts invalid reference to dimension...
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 10:54:24 +0000 (10:54 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 10:54:24 +0000 (10:54 +0000)
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

gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog

index 8e6c933..c5e1aa8 100644 (file)
@@ -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.
 
 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>
 
index b919b84..7866b35 100644 (file)
@@ -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>