[Patch, fortran] PR69423 - [6 Regression] Invalid optimization with deferred-length character
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sun Feb 21 06:48:00 GMT 2016
Dear Mikael,
Thanks for reminding me of that way of discriminating between the
types. I did look at it briefly, back at the start of the OOP project,
but got lost in trying to fold it into the SELECT CASE scheme, which
was hijacked for SELECT TYPE. Also, I will have to check that the vtab
pointers really do have unique values for each type. I'll take a look
at it.
Thanks
Paul
On 20 February 2016 at 19:54, Mikael Morin <mikael.morin@sfr.fr> wrote:
> Le 20/02/2016 19:35, Paul Richard Thomas a écrit :
>>
>> The only way that I know to do
>> this reliably is to drop the use of a has and to use the extended type
>> names directly. This will take a bit of work!
>>
> Maybe the vtab pointer can be used to discriminate between types?
> There is one vtab struct for each type, isn't there?
>
> Mikael
--
The difference between genius and stupidity is; genius has its limits.
Albert Einstein
More information about the Fortran
mailing list