This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, Fortran] PR 52270 - OOP - pointer check in vardef context, passing to intent-in ptr
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: fortran at gcc dot gnu dot org
- Cc: Tobias Burnus <burnus at net-b dot de>, "gcc-patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 27 Feb 2012 20:39:57 +0100
- Subject: Re: [Patch, Fortran] PR 52270 - OOP - pointer check in vardef context, passing to intent-in ptr
- References: <4F3FA895.email@example.com>
On Saturday 18 February 2012 14:33:09 Tobias Burnus wrote:
> The patch consists of two parts:
> * The pointer check in gfc_check_vardef_context didn't honour
> polymorphic variables
> * Passing a TYPE to a CLASS is not allowed if CLASS is a pointer or
> allocatable as the actual argument cannot change its effective type.
> However, if the dummy is an intent(in)-pointer, there is no risk of
> doing so. Thus, one can allow this.
> The latter is an interpretation request (F08/0073), which passed the J3
> meeting. It is in line of the Fortran 2008 feature, where one can pass a
> TARGET variable (i.e. nonpointer) to an intent-in pointer dummy argument.
> Build and regtested on x86-64-linux
> OK for the (4.8) trunk?