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 fortran/37425: Finish type-bound operators


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


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