re PR fortran/83540 (Invalid code with MATMUL, -fno-realloc-lhs -ffrontend-optimize)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 26 Dec 2017 23:29:20 +0000 (23:29 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 26 Dec 2017 23:29:20 +0000 (23:29 +0000)
commit62227a69b33b515058c929ac0dfe75ece9809ece
treea6d14470e38ef1c80e447256045a58ba5c0a368b
parentfa9d9dc25d68f8dfa11377f4f7caa8aa38643efd
re PR fortran/83540 (Invalid code with MATMUL, -fno-realloc-lhs -ffrontend-optimize)

2017-12-26  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/83540
* frontend-passes.c (create_var): If an array to be created
has unknown size and -fno-realloc-lhs is in effect,
return NULL.

2017-12-26  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/83540
* gfortran.dg/inline_matmul_20.f90: New test.

From-SVN: r256003
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/inline_matmul_20.f90 [new file with mode: 0644]