re PR fortran/66041 (Matmul ICE)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 10 May 2015 18:08:33 +0000 (18:08 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 10 May 2015 18:08:33 +0000 (18:08 +0000)
commit7fc67fcb4d25203b8bbdeb5a4b914879a7cbf3f9
tree307001763875eb162d6d6a94c11a79974b71aa4d
parente3855ed21a54f4bdba7b9c69580f2e071cedc4d6
re PR fortran/66041 (Matmul ICE)

2015-05-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66041
* frontend-passes.c (scalarized_expr): Set correct dimension and
shape for the expression to be passed to lbound. Remove trailing
references after array refrence.
(inline_matmul_assign):  Remove gfc_copy_expr from calls
to scalarized_expr().

2015-05-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66041
* gfortran.dg/inline_matmul_7.f90:  New test.
* gfortran.dg/inline_matmul_8.f90:  New test.
* gfortran.dg/inline_matmul_9.f90:  New test.

From-SVN: r222982
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/inline_matmul_7.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/inline_matmul_8.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/inline_matmul_9.f90 [new file with mode: 0644]