[Patch, fortran] PR92959 - ICE in gfc_conv_associated, at fortran/trans-intrinsic.c:8634
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sat Feb 29 12:18:00 GMT 2020
This is a another case of the gotcha's that come from trying to use
ts.u.cl->backend_decl directly, where deferred length and even, in
this case fixed length characters are concerned. The fix is to make
use of the string length obtained from evaluation of the expression.
Regtested on FC31/x86_64 - OK for trunk?
Paul
2020-02-29 Paul Thomas <pault@gcc.gnu.org>
PR fortran/92959
* trans-intrinsic.c (gfc_conv_associated): Eliminate
'nonzero_charlen' and move the chunk to evaluate zero character
length until after the argument evaluation so that the string
length can be used.
2020-02-29 Paul Thomas <pault@gcc.gnu.org>
PR fortran/92959
* gfortran.dg/associated_8.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 3181 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20200229/b4d8b630/attachment.bin>
More information about the Fortran
mailing list