[PATCH] PR fortran/103776 - ICE in gfc_compare_string, at fortran/arith.c:1118

Harald Anlauf anlauf@gmx.de
Mon Dec 20 21:07:45 GMT 2021


Dear all,

we need to check that expressions in CASE selectors are scalar,
and reject them early if they aren't.

Testcase by Gerhard.  The fix is obvious and sort of a follow-up
to the fix for PR103591.

Regtested on x86_64-pc-linux-gnu.

Will commit as obvious within 48h unless there are objections or
other comments.

Thanks,
Harald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fortran-CASE-selector-expressions-must-be-scalar.patch
Type: text/x-patch
Size: 2131 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20211220/f27ecdcd/attachment.bin>


More information about the Fortran mailing list