revert: re PR fortran/83522 (ICE on allocatable string reference, string(:)(:))
commit2c4f9ec16214b53c53c46dd3a0a22f18a268bc28
authorTobias Burnus <burnus@net-b.de>
Thu, 11 Oct 2018 19:37:28 +0000 (11 21:37 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 11 Oct 2018 19:37:28 +0000 (11 21:37 +0200)
tree2d577c9807d9e0846ae2c0c44688240ac3071c96
parent1b6acf2339201a7464d052f1909b24a64021685b
revert: re PR fortran/83522 (ICE on allocatable string reference, string(:)(:))

2018-10-11  Tobias Burnus <burnus@net-b.de>

        Revert:
        2018-10-09  Tobias Burnus <burnus@net-b.de>

        PR fortran/83522
        * resolve.c (resolve_ref): Reject nonscalar
        substring references.

2018-10-11  Tobias Burnus <burnus@net-b.de>

        Revert:
        2018-10-09  Tobias Burnus <burnus@net-b.de>

        PR fortran/83522
        * gfortran.dg/actual_array_substr_1.f90: Add dg-error,
        change to dg-do compile.
        * gfortran.dg/actual_array_substr_2.f90: Ditto.
        * gfortran.dg/array_initializer_1.f90: Use array
        element not size-one section.
        * gfortran.dg/array_substring.f90: New.

From-SVN: r265059
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/actual_array_substr_1.f90
gcc/testsuite/gfortran.dg/actual_array_substr_2.f90
gcc/testsuite/gfortran.dg/array_substring.f90 [deleted file]