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

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jun 12 18:42:00 GMT 2019


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  <kargl@gcc.gnu.org>

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

2019-06-12  Steven G. Kargl  <kargl@gcc.gnu.org>

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

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr89344.diff
Type: text/x-diff
Size: 1938 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190612/2f500c6a/attachment.bin>


More information about the Gcc-patches mailing list