re PR fortran/67496 (trans-array.c sanitizer runtime error: load of value 124, which...
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Aug 2016 19:08:49 +0000 (21:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Aug 2016 19:08:49 +0000 (21:08 +0200)
commit3a146d46ce1d0977776ab2c1147c707796565ddd
tree9b4f7090bbebc0c2c8cc92cffdd826a50a0c326b
parente30c6e0c145c7fb6ed6efc06044a1ee86878dd11
re PR fortran/67496 (trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool')

PR fortran/67496
* trans-array.c (trans_array_constructor): Load
expr->ts.u.cl->length_from_typespec only if expr->ts.type is
BT_CHARACTER.

* gfortran.dg/pr67496.f90: New test.

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