[Patch, Fortran, committed] PR 78592: [7 Regression] ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939

Janus Weil janus@gcc.gnu.org
Sat Dec 17 23:18:00 GMT 2016


2016-12-17 22:49 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
> Hi Mikael,
>
>>> I have just committed a completely obvious patch for this PR. All it
>>> does is rearrange some expressions to avoid an ICE (see attachment):
>>>
>> I have made a late review of it, and I think it’s not as innocent as it
>> seems.
>> With it, if the first element’s formal is not properly set, the rest of the
>> generic linked list is ignored.
>>
>> Here is a variant of the testcase committed.
>> It shows no error if the module procedure line is commented, and two errors
>> if it’s uncommented, one error saying that the write of z2 should use DTIO.
>> The latter error should not appear.
>
> thanks for the comment, and sorry that I didn't notice this problem.
>
> The attached patch should fix it. What do you think about it?
>
> Btw, with trunk r243776 I get an ICE on your test case, when the
> module procedure is commented out. You don't see this?

I have opened PR 78848 for this.

Cheers,
Janus



More information about the Gcc-patches mailing list