[Patch, fortran] PR fortran/100948 - [12 Regression] ICE in gfc_conv_expr_val, at fortran/trans-expr.c:9069

José Rui Faustino de Sousa jrfsousa@gmail.com
Sun Jun 13 19:11:50 GMT 2021


Hi all!

Proposed partial patch to:

Bug 100948 - [12 Regression] ICE in gfc_conv_expr_val, at 
fortran/trans-expr.c:9069

Patch tested only on x86_64-pc-linux-gnu.

Reuse previously calculated full string length to set string section 
default upper bound.

This patch only fixes the ICE the code produced is still wrong.

Thank you very much.

Best regards,
José Rui

Fortran: Fix ICE.

gcc/fortran/ChangeLog:

	PR fortran/100948
	* trans-expr.c (gfc_get_expr_charlen): reuse previously calculated
	full string length to set string section default upper bound.

gcc/testsuite/ChangeLog:

	PR fortran/100948
	* gfortran.dg/PR100948.f90: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PRNEXT.patch
Type: text/x-patch
Size: 7386 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210613/a136a493/attachment.bin>


More information about the Fortran mailing list