re PR fortran/79312 (Empty array in assignment not correctly type-checked)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 1 Aug 2017 19:09:02 +0000 (19:09 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 1 Aug 2017 19:09:02 +0000 (19:09 +0000)
commitd8afd032fad763a31efe2da716da657bde7c556b
treea3447ff3781055304ee585118d953f2687c5e14e
parente655a6cc43e880b291b726394c1c6be6db461e89
re PR fortran/79312 (Empty array in assignment not correctly type-checked)

2017-08-01  Thomas König  <tkoenig@gcc.gnu.org>

PR fortran/79312
* intrisic.c (gfc_convert_type_warn):  Only set typespec for
empty array constructors which don't have it already.

2017-08-01  Thomas König  <tkoenig@gcc.gnu.org>

PR fortran/79312
* gfortran.dg/logical_assignment_1.f90:  New test.

From-SVN: r250792
gcc/fortran/ChangeLog
gcc/fortran/intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/logical_assignment_1.f90 [new file with mode: 0644]