PR 84740 Wrong string length type in bounds check
authorJanne Blomqvist <jb@gcc.gnu.org>
Wed, 10 Jan 2018 11:18:31 +0000 (13:18 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Wed, 10 Jan 2018 11:18:31 +0000 (13:18 +0200)
commit85c2c761f44b23df217e20354bf83bbe5a4632dd
tree3955534f13e2dafdab1a4c93290d12234dac7751
parentf6aa5171a1a0091bcc3741b1ffff9e8a962e728c
PR 84740 Wrong string length type in bounds check

Need to convert the RHS to the type of the LHS when assigning.

Regtested on x86_64-pc-linux-gnu, committed as obvious.

gcc/fortran/ChangeLog:

2018-01-10  Janne Blomqvist  <jb@gcc.gnu.org>

PR fortran/84740
* trans-array.c (gfc_trans_array_ctor_element): Convert RHS to the
LHS type when assigning.

From-SVN: r256425
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c