This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR 52270 - OOP - pointer check in vardef context, passing to intent-in ptr


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?
> 
OK. Thanks.

Mikael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]