This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, OOP] PR 47240: segfault with procedure pointer component
Paul,
>> 2) The hunk in resolve.c fixes the rejects-valid problem in comment
>> #2. I think this should be ok, but I'm not 100% sure.
>
> I wonder if you should not limit your condition to attr.proc_pointer
> && attr.function ?
yes, I think this could not hurt. In principle the check for
"!ref->next" should already catch all the relevant cases (data
components will have an additional REF_ARRAY), but maybe your proposal
will make the code a bit clearer.
>> The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>>
>
> Otherwise, it looks OK for trunk.
Thanks for the review, will commit after another regtest (just to be sure).
Cheers,
Janus