This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran, OOP] PR 78800: ICE in compare_parameter, at fortran/interface.c:2246
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Andre Vehreschild <vehre at gmx dot de>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 15 Dec 2016 15:08:23 +0100
- Subject: Re: [Patch, Fortran, OOP] PR 78800: ICE in compare_parameter, at fortran/interface.c:2246
- Authentication-results: sourceware.org; auth=none
- References: <CAKwh3qjo7NLrKib5y4fUv04F4KuShVg5bUr-=W9462-vHG0duQ@mail.gmail.com> <20161215143054.77bf41d0@vepi2>
2016-12-15 14:30 GMT+01:00 Andre Vehreschild <vehre@gmx.de>:
> Looks good to me.
Thanks, Andre. Committed to trunk as r243691.
Cheers,
Janus
> On Thu, 15 Dec 2016 14:18:28 +0100
> Janus Weil <janus@gcc.gnu.org> wrote:
>
>> Hi all,
>>
>> the attached patch deals with error recovery only and fixes an
>> ICE-on-invalid problem.
>>
>> Regtests cleanly on x86_64-linux-gnu. Ok for trunk?
>>
>> Cheers,
>> Janus
>>
>>
>> 2016-12-15 Janus Weil <janus@gcc.gnu.org>
>>
>> PR fortran/78800
>> * interface.c (compare_allocatable): Avoid additional errors on bad
>> class declarations.
>> (compare_parameter): Put the result of gfc_expr_attr into a variable,
>> in order to avoid calling it multiple times. Exit early on bad class
>> declarations to avoid ICE.
>>
>> 2016-12-15 Janus Weil <janus@gcc.gnu.org>
>>
>> PR fortran/78800
>> * gfortran.dg/unlimited_polymorphic_27.f90: New test case.
>
>
> --
> Andre Vehreschild * Email: vehre ad gmx dot de