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] PR34910 - [4.2/4.3 Regression] ICE on invalid assignments in doubly-contained functions


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.


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