[Patch, fortran] PR98472 - internal compiler error: in gfc_conv_expr_descriptor, at fortran/trans-array.c:7352
Paul Richard Thomas
paul.richard.thomas@gmail.com
Wed Jan 27 09:20:45 GMT 2021
I have applied another obvious patch to fix this PR. It was tempting to
remove both gcc-asserts but I have erred on the side of caution this time.
Commit r11-6924-g003f0414291d595d2126e6d2e24b281f38f3448f
Again, it is sufficiently safe and obvious that I am tempted to put it on
my list of backports.
Paul
Fortran: Fix ICE due to elemental procedure pointers [PR98472].
2021-01-27 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/98472
* trans-array.c (gfc_conv_expr_descriptor): Include elemental
procedure pointers in the assert under the comment 'elemental
function' and eliminate the second, spurious assert.
gcc/testsuite/
PR fortran/98472
* gfortran.dg/elemental_function_5.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210127/ead450cb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elemental_function_5.f90
Type: text/x-fortran
Size: 1238 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210127/ead450cb/attachment-0001.bin>
More information about the Fortran
mailing list