[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-fortran
Subject:    Re: [Patch, Fortran, OOP] PR 64244: [4.8/4.9/5 Regression] ICE at class.c:236 when using non_overrid
From:       Janus Weil <janus () gcc ! gnu ! org>
Date:       2014-12-16 8:16:53
Message-ID: CAKwh3qjNUy4Dk=G+2TH5_47X90Oi9bX6J-vctRWhNk27eUW0ww () mail ! gmail ! com
[Download RAW message or body]

2014-12-16 7:58 GMT+01:00 Tobias Burnus <burnus@net-b.de>:
> Hi Janus, hi all,
>
> Janus Weil wrote:
>>
>> here is a regression fix for a problem with the NON_OVERRIDABLE
>> attribute. For non-overridable type-bound procedures we do not have to
>> generate a call to the vtable, but can just translate it to a simple
>> ('non-virtual') function call. In this particular case, an additional
>> generic binding was present, which fooled the compiler to believe that
>> the call goes to an overridable procedure, so it tried to generate a
>> call to a vtable entry which did not exist. The trick is simply to
>> take the NON-OVERRIDABLE attribute from the specific procedure, not
>> the generic one (which means the generic call has to be resolved to a
>> specific one first).
>>
>> The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk? And
>> for 4.8/4.9 after some time?
>
>
> OK. Thanks for the patch!

Committed as r218776. I'll wait a bit before putting it to the
branches, to see if any problems show up on trunk ...


Cheers,
Janus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic