[Patch, fortran] PR fortran/66833,67938,95214 ICE on using assumed rank character array

Thomas Koenig tkoenig@netcologne.de
Wed Jun 3 17:45:55 GMT 2020


Hi Jose,

> Proposed patch to PRs 66833, 67938 and 95214 ICE(s) on using assumed 
> rank character array in different situations.

Reviewed and committed with some trival changes:

It is better not to use STOP codes > 255, so I just
counted them up.

Some changes to the ChangeLog: Mentioned all PRs there and made the
ChangeLog conform to the upload checker (well, it worked the second time
:-)

Here's what I committed as r11-879:

Simple patch only add assumed-rank to the list of possible attributes.

gcc/fortran/ChangeLog:

2020-05-19  José Rui Faustino de Sousa  <jrfsousa@gmail.com>

	PR fortran/95214
	PR fortran/66833
	PR fortran/67938
	* trans-expr.c (gfc_maybe_dereference_var): Add assumed-rank to
	character dummy arguments list of possible attributes.

gcc/testsuite/ChangeLog:

2020-05-19  José Rui Faustino de Sousa  <jrfsousa@gmail.com>

	PR fortran/95214
	PR fortran/66833
	PR fortran/67938
	* gfortran.dg/PR95214.f90: New test.

Thanks a lot for the patch!  I notice you still have a couple
of submissions, I'll try to get to them in the next few
days (unless somebody else beats me to a review).

Best regards

	Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 2465 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20200603/748fb9db/attachment.bin>


More information about the Fortran mailing list