[Patch, Fortran] PR 55983: [4.7/4.8 Regression] ICE in find_typebound_proc_uop, at fortran/class.c:2711

Janus Weil janus@gcc.gnu.org
Wed Jan 16 19:56:00 GMT 2013


> As you say, this is close to being obvious - OK for trunk and for 4.7.

Thanks, guys. Committed to trunk as 195251. Will do 4.7 soon ...

Cheers,
Janus



> On 16 January 2013 15:08, Janus Weil <janus@gcc.gnu.org> wrote:
>> Hi all,
>>
>> here is a close-to-obvious patch for an ICE-on-invalid regression. It
>> removes as assert, which is reasonable for valid code but can fail
>> under error conditions (as the PR shows), and replaces it with an
>> equivalent IF clause.
>>
>> Regtested on x86_64-unknown-linux-gnu. Ok for trunk and 4.7?
>>
>> Cheers,
>> Janus
>>
>>
>> 2013-01-16  Janus Weil  <janus@gcc.gnu.org>
>>
>>     PR fortran/55983
>>     * class.c (find_typebound_proc_uop): Check for f2k_derived instead of
>>     asserting it.
>>
>>
>> 2013-01-16  Janus Weil  <janus@gcc.gnu.org>
>>
>>     PR fortran/55983
>>     * gfortran.dg/class_55.f90: New.
>
>
>
> --
> The knack of flying is learning how to throw yourself at the ground and miss.
>        --Hitchhikers Guide to the Galaxy



More information about the Gcc-patches mailing list