Prevent conversion of character data in array constructors.
authorMark Eggleston <mark.eggleston@codethink.com>
Thu, 19 Dec 2019 15:13:25 +0000 (15:13 +0000)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Thu, 19 Dec 2019 15:13:25 +0000 (15:13 +0000)
commit8405874a0e2db1806332ead2dcf3e9ec563075aa
tree90a26d11226d612f5fda08c8d2c36feb304072ce
parentaa0e90e7bff935856212b64236cd540acccc66a0
Prevent conversion of character data in array constructors.

Fix for PR fortran/92896 [10 Regression] [DEC] ICE in reduce_unary, at
fortran/arith.c:1283.

This was caused by an unintended side affect of "Allow CHARACTER literals
in assignments and data statements" (revision 277975). If the conversion
occurs in a array constructor it is rejected.

From-SVN: r279583
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/gfortran.h
gcc/fortran/intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/no_char_conversion_in_array_constructor.f90 [new file with mode: 0644]