re PR fortran/87277 (Segfault on using array component of class scalar pointer as...
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 11 Sep 2018 15:59:07 +0000 (15:59 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 11 Sep 2018 15:59:07 +0000 (15:59 +0000)
commit3b949026d4ceb442a3cd43a429b36c800970a2d6
tree8a737b03c80de2c8d93933de4496f1802a084c29
parentb34e743c9c7a530c102c0c6bb1737ff2a0528da0
re PR fortran/87277 (Segfault on using array component of class scalar pointer as an actual argument)

2018-09-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87277
* expr.c (is_subref_array): Add the check of dimensionality for
class, dummy, pointer arrays.

2018-09-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87277
* gfortran.dg/select_type_43.f90: New test.

From-SVN: r264210
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/select_type_43.f90 [new file with mode: 0644]