2015-05-10 Thomas Koenig <tkoenig@gcc.gnu.org>
commitc127234a5adc381a4b827561085339d251f1ea33
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 May 2015 18:08:33 +0000 (10 18:08 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 May 2015 18:08:33 +0000 (10 18:08 +0000)
tree307001763875eb162d6d6a94c11a79974b71aa4d
parent57d24ff62823ae4b87459b126eb6f4ac0cd4f97f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222982 138bc75d-0d04-0410-961f-82ee72b054a4
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]