[Patch, fortran] PR34910 - [4.2/4.3 Regression] ICE on invalid assignments in doubly-contained functions
Tobias Burnus
burnus@net-b.de
Thu Jan 31 12:56:00 GMT 2008
Paul Richard Thomas wrote:
> At the moment, it is only regtested on Cygwin - I'll do the full
> business tonight before committing.
> OK for trunk?
>
OK. (At first I thought there might be problems with ENTRYs, but they
are not allowed in contained procedures.)
But you should change gfc- to dg- in the test case:
+
+ LOGICAL FUNCTION f2()
+ f1 = .FALSE. ! { gfc-error "not a VALUE" }
+ END FUNCTION
Tobias
> 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/34910
> * expr.c (gfc_check_assign): It is an error to assign
> to a sibling procedure.
>
> 2008-01-31 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/34910
> * gfortran.dg/proc_assign_2.f90: New test.
>
More information about the Gcc-patches
mailing list