[PATCH, committed] PR fortran/96085 - ICE in gfc_finish_var_decl, at fortran/trans-decl.c:694

Harald Anlauf anlauf@gmx.de
Wed Jul 8 18:57:08 GMT 2020


Committed as obvious.  Check whether the target of a legacy ASSIGN statement
is a parameter and reject if this is the case.

Regtested on x86_64-pc-linux-gnu.

Thanks,
Harald


PR fortran/96085 - ICE in gfc_finish_var_decl, at fortran/trans-decl.c:694

Legacy ASSIGN requires a scalar integer variable.  Reject parameter
arguments.

gcc/fortran/
	PR fortran/96085
	* resolve.c (gfc_resolve_code): Check whether assign target is a
	parameter.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr96085.patch
Type: text/x-patch
Size: 1087 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200708/4b0d51e4/attachment.bin>


More information about the Gcc-patches mailing list