This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, F03] PR 64508: interface check missing for procedure pointer component as actual argument
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 11 Jan 2015 16:16:39 +0100
- Subject: Re: [Patch, Fortran, F03] PR 64508: interface check missing for procedure pointer component as actual argument
- Authentication-results: sourceware.org; auth=none
- References: <CAKwh3qi6Jw=MJdatmNxex+rHjHUkghkCJLLh2Ph+_T_af2maGg at mail dot gmail dot com> <CAKwh3qjsvssGPjJTiaKRWXzYKZ-OwnH-72E9kwsiuL+ukXXiFg at mail dot gmail dot com>
Dear Janus,
As you say, the patch is pretty straightforward :-) OK for trunk.
Thanks for the patch
Paul
On 11 January 2015 at 11:21, Janus Weil <janus@gcc.gnu.org> wrote:
> Ping! (I think this patch is pretty straightforward ...)
>
> Cheers,
> Janus
>
>
>
> 2015-01-06 16:19 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
>> Hi all,
>>
>> here is a patch which adds an interface check for procedure pointer
>> components as acual arguments. Such a check is there already for
>> ordinary procedures and procedure pointers, but missing for PPCs. It
>> checks the interface of the actual argument versus the interface of
>> the dummy procedure, according to the usual rules.
>>
>> Regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>>
>> Cheers,
>> Janus
>>
>>
>>
>> 2015-01-06 Janus Weil <janus@gcc.gnu.org>
>>
>> PR fortran/64508
>> * interface.c (compare_parameter): Interface check for
>> procedure-pointer component as actual argument.
>>
>> 2015-01-06 Janus Weil <janus@gcc.gnu.org>
>>
>> PR fortran/64508
>> * gfortran.dg/proc_ptr_comp_41.f90: New.
--
Outside of a dog, a book is a man's best friend. Inside of a dog it's
too dark to read.
Groucho Marx