re PR fortran/83633 (gfortran internal compiler error for explicit-shape array with...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 25 Feb 2018 16:50:50 +0000 (16:50 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 25 Feb 2018 16:50:50 +0000 (16:50 +0000)
commit09ef33c10863f37a99396040bfa4329de1271eb3
treebc03b941fba4b3175b46ed2c886baf947469fd67
parent8fba26f48f4224ca9f2faab0b2a28e20784a119c
re PR fortran/83633 (gfortran internal compiler error for explicit-shape array with non-constant bounds)

2018-02-25  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83633
* decl.c (variable_decl): Check that an explicit-shape-array with
nonconstant bounds is allowed.

2018-02-25  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83633
* gfortran.dg/explicit_shape_1.f90: New test.
* gfortran.dg/automatic_module_variable.f90: Update regex.
* gfortran.dg/bad_automatic_objects_1.f90: Ditto.
* gfortran.dg/constant_shape.f90: Ditto.
* gfortran.dg/dec_structure_23.f90: Ditto.
* gfortran.dg/pr78240.f90: Ditto.

From-SVN: r257971
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/automatic_module_variable.f90
gcc/testsuite/gfortran.dg/bad_automatic_objects_1.f90
gcc/testsuite/gfortran.dg/constant_shape.f90
gcc/testsuite/gfortran.dg/dec_structure_23.f90
gcc/testsuite/gfortran.dg/explicit_shape_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr78240.f90