This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran, committed] PR 78592: [7 Regression] ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Mikael Morin <morin-mikael at orange dot fr>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 18 Dec 2016 12:07:35 +0100
- Subject: Re: [Patch, Fortran, committed] PR 78592: [7 Regression] ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939
- Authentication-results: sourceware.org; auth=none
- References: <CAKwh3qhVz2=y=wsQiZwcpJnVnScy_m9nn1B6aRg9kS2Qjf0GJw@mail.gmail.com> <d664be61-c00c-bac4-ca77-b74a4e15020a@orange.fr> <CAKwh3qgMVoMjr_sHtbr6Xh9JaZXwOHiPecxaMTaos0kT=aZZqA@mail.gmail.com> <f5dc22b0-47f4-aa3c-59b0-976ea7adc77d@orange.fr> <CAKwh3qgJxa0W4EenBxLLcCQPUTjCuw==CU9Ok3ZUR26Qg+E9Mw@mail.gmail.com>
2016-12-18 11:25 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
> 2016-12-18 11:18 GMT+01:00 Mikael Morin <morin-mikael@orange.fr>:
>> Le 17/12/2016 à 22:49, Janus Weil a écrit :
>>>
>>> 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?
>>>
>> Yes, it looks good.
>
> Ok, will commit this to trunk together with your test case.
Committed as r243783 after successful regtest:
https://gcc.gnu.org/viewcvs?rev=243783&root=gcc&view=rev
Cheers,
Janus
- References:
- Re: [Patch, Fortran, committed] PR 78592: [7 Regression] ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939
- Re: [Patch, Fortran, committed] PR 78592: [7 Regression] ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939
- Re: [Patch, Fortran, committed] PR 78592: [7 Regression] ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939
- Re: [Patch, Fortran, committed] PR 78592: [7 Regression] ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939