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 41719: [OOP] invalid: Intrinsic assignment involving polymorphic variables


Janus Weil wrote:
> here is a small patch which fixes this PR (rather obvious). It was
> successfully regtested on x86_64-unknown-linux-gnu.
>
> Ok for trunk?
>
>   

Yes, the patch is okay. Thanks for the quick fix - and nice that you
spotted the difference in F2008. (F2008 allows it for allocatable
polymorphic variables; cf. F2003's (re)allocate on assignment for
nonpolymorphic allocatable variables.)

Tobias

> 2009-10-16  Janus Weil  <janus@gcc.gnu.org>
>
> 	PR fortran/41719
> 	* resolve.c (resolve_ordinary_assign): Reject intrinsic assignments
> 	to polymorphic variables.
>
>
> 2009-10-16  Janus Weil  <janus@gcc.gnu.org>
>
> 	PR fortran/41719
> 	* gfortran.dg/class_5.f03: New test case.
> 	* gfortran.dg/typebound_operator_2.f03: Fixing invalid test case.
> 	* gfortran.dg/typebound_operator_4.f03: Ditto.
>   


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