Discussion:
[Patch, Fortran] PR87625 - fix reallocate on assign with polymophic arrays
Tobias Burnus
2018-10-17 08:35:00 UTC
Permalink
for some reasons, the two calls to gfc_is_reallocatable_lhs(expr1) differ, the first
one is a simple "var" + full-array reference while the second one is
"var->_data" + full-array reference.

Neither was handled and, hence, using
var = [ t(11), t(12) ]
didn't do any memory allocation; the program then simply segfaulted on assignment.

Build and regtested on x86-64-gnu-linux.
OK for the trunk?

Tobias
Paul Richard Thomas
2018-10-18 16:28:11 UTC
Permalink
Your patch at: https://gcc.gnu.org/ml/fortran/2018-10/msg00079.html is
OK for trunk.

Thanks

Paul

Loading...