[PATCH] fortran/28866 -- Fix not so simple simple IF
THOMAS Paul Richard 169137
Paul.Richard.THOMAS@cea.fr
Tue Aug 29 08:55:00 GMT 2006
Reply to off-list message
Steve,
>
> I've attached a new patch that includes the removal of
> your previous patch, and for the above code gfortran now
> gives
>
> In file f.f90:5
>
> if (j .eq. 1) i = j
> 1
> Error: Cannot assign to a named constant at (1)
>
> The new patch adds a check for the above after all
> the other matchers fail. It is a special case of
> the gfc_match_assignment. This passed a regression
> test on amd64-*-freebsd.
>
It looks good! OK to commit.
Thanks
Paul
More information about the Gcc-patches
mailing list