2 May 2012 09:50
Re: [Patch, fortran] PR41600 - [OOP] SELECT TYPE with associate-name => exp: Arrays not supported
Paul Richard Thomas <paul.richard.thomas <at> gmail.com>
2012-05-02 07:50:11 GMT
2012-05-02 07:50:11 GMT
Dear Tobias,
Thanks for completing the review. I should be able to commit tonight.
> Thanks for the patch. I think it is OK.
>
> Regarding:
>
>> ! if (ref&& ref->type != REF_ARRAY&& seen_array)
>> ! {
>> ! gfc_error ("CLASS selector at %L is an array with CLASS "
>> ! "components; this is not allowed since the "
>> ! "elements could have different dynamic types",
>> ! &target->where);
>
>
> Could you open a PR for it? If possible with a test case.
select_type_28.f03 is that testcase (see below). I am not sure what
the PR would be for - surely such selectors make no logical sense?
Oddly I can see no such restriction in the standard. Indeed, there
seems to me to be an identical diffculty with pointer assignment.
Maybe a message to clf would be in order?
Cheers
Paul
Cheers
(Continue reading)
b) Pending committal:
- Paul's SELECT TYPE patch
RSS Feed