[PATCH] PR fortran/95709 - [9/10/11 Regression] ICE in gfc_resolve_code, at fortran/resolve.c:11807
Harald Anlauf
anlauf@gmx.de
Fri Jul 3 20:30:43 GMT 2020
> The obsolescent (=legacy) assigned GOTO should only allow scalar integer
> variables. Check for proper conditions.
I've played around some more with invalid uses of assigned GOTO and found
that some cases produced a suboptimal error message. The attached patch
(v2) improves upon this and provides a slightly larger testcase.
Again regtested on x86_64-pc-linux-gnu.
OK for master / backports?
Thanks,
Harald
> PR fortran/95709 - ICE in gfc_resolve_code, at fortran/resolve.c:11807
>
> The legacy "assigned GOTO" accepts only scalar integer variables.
> Check for proper arguments.
>
> gcc/fortran/
> PR fortran/95709
> * resolve.c (gfc_resolve_code): Check for valid arguments to
> assigned GOTO.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr95709-v2-patch
Type: application/octet-stream
Size: 1915 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200703/8f3d883d/attachment.obj>
More information about the Gcc-patches
mailing list