[PATCH] PR fortran/89344 -- INTENT(IN) CLASS(*) cannot be assigned to

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] PR fortran/89344 -- INTENT(IN) CLASS(*) cannot be assigned to

Steve Kargl
The attach patch has lived in my tree for 4 months.
It's time to submit it.  Passed regression testing
for a long time.

An INTENT(in) entity that has CLASS(*) dummy argument
should not use SELECT TYPE to then try to assign to the
entity.  OK to commit?

2019-06-12  Steven G. Kargl  <[hidden email]>

        PR fortran/89344
        * expr.c (gfc_check_vardef_context): Check for INTENT(IN) variable
        in SELECT TYPE construct.

2019-06-12  Steven G. Kargl  <[hidden email]>

        PR fortran/89344
        * gfortran.dg/pr89344.f90: New test.

--
Steve

pr89344.diff (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] PR fortran/89344 -- INTENT(IN) CLASS(*) cannot be assigned to

Paul Richard Thomas
Hi Steve,

OK - thanks

Paul

On Wed, 12 Jun 2019 at 19:42, Steve Kargl
<[hidden email]> wrote:

>
> The attach patch has lived in my tree for 4 months.
> It's time to submit it.  Passed regression testing
> for a long time.
>
> An INTENT(in) entity that has CLASS(*) dummy argument
> should not use SELECT TYPE to then try to assign to the
> entity.  OK to commit?
>
> 2019-06-12  Steven G. Kargl  <[hidden email]>
>
>         PR fortran/89344
>         * expr.c (gfc_check_vardef_context): Check for INTENT(IN) variable
>         in SELECT TYPE construct.
>
> 2019-06-12  Steven G. Kargl  <[hidden email]>
>
>         PR fortran/89344
>         * gfortran.dg/pr89344.f90: New test.
>
> --
> Steve



--
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein