> 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. >
pr95709-v2-patch
Description: Binary data