[Patch, Fortran] PR fortran/37425: Finish type-bound operators

Paul Richard Thomas paul.richard.thomas@gmail.com
Thu Aug 27 17:38:00 GMT 2009


Tobias,


> NAG f95 complains:
> ERROR: CLASS variable ME cannot be left-hand-side of intrinsic assignment
>
> I fully agree. How about adding a "logical" component and assigning the
> logcial component in assign_proc? For instance:
>     me%b = .not. b
> (The purpose of the .not. is to make it different from the intrinsic
> assignment :-)

I suppose that

allocate (t :: me) would do?

Cheers

Paul



More information about the Gcc-patches mailing list