[Patch, fortran] PR70149 - [F08] Character pointer initialization causes ICE

Paul Richard Thomas paul.richard.thomas@gmail.com
Tue Sep 25 16:46:00 GMT 2018


This is yet another deferred length character bug. The fix speaks for
itself. I'll dream up a more suitable name for the testcase before
committing.

Bootstraps and regtests on FC21/x86_64 - OK for trunk and 8-branch?

Paul

2018-09-25  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/70149
    * trans-decl.c (gfc_get_symbol_decl): A deferred character
    length pointer that is initialized needs the string length to
    be initialized as well.

2018-09-25  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/70149
    * gfortran.dg/pr70149.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180925/fa1fa7ec/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr70149.f90
Type: text/x-fortran
Size: 529 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180925/fa1fa7ec/attachment-0001.bin>


More information about the Gcc-patches mailing list