[patch, fortran] Fix PR 83540

Thomas Koenig tkoenig@netcologne.de
Tue Dec 26 12:13:00 GMT 2017


Hello world,

this rather self-explanatory patch makes sure we don't get an error
using reallocation on assignment for inlining matmul when
we don't have reallocation on assignment.

Regression-tested. OK for trunk?

Regards

	Thomas

2017-12-25  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-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/83540
         * gfortran.dg/inline_matmul_20.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171226/baf64f59/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline_matmul_20.f90
Type: text/x-fortran
Size: 442 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171226/baf64f59/attachment-0001.bin>


More information about the Fortran mailing list