re PR fortran/52162 (Bogus -fcheck=bounds with realloc on assignment to unallocated...
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 13 Jan 2018 13:52:34 +0000 (13:52 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 13 Jan 2018 13:52:34 +0000 (13:52 +0000)
commit567a6e1cdb3cae09ae74bdd528fd31c0b4956ad2
treea382870fea24ff5a8345e401de81e482bb901fde
parent700b62ccf29e12b68029883b5c1e69f151c4e512
re PR fortran/52162 (Bogus -fcheck=bounds with realloc on assignment to unallocated LHS)

2018-01-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/52162
* trans-expr.c (gfc_trans_scalar_assign): Flag is_alloc_lhs if
the rhs expression is neither an elemental nor a conversion
function.

PR fortran/83622
* trans-array.c (is_pointer_array): Remove unconditional return
of false for -fopenmp.

2018-01-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/52162
* gfortran.dg/bounds_check_19.f90 : New test.

From-SVN: r256607
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bounds_check_19.f90 [new file with mode: 0644]