Created attachment 48568 [details] Fortran code demonstrating problems. Hi All! ICE with 10 and 11 on assumed-rank character array with select rank block. using: GNU Fortran (GCC) 10.1.1 20200518 GNU Fortran (GCC) 11.0.0 20200518 (experimental) This is very likely related to Bug 67938 and Bug 66833. Thank you very much. Best regards, José Rui
Started with r10-2912-g70570ec192745095, it was rejected before the revision.
The master branch has been updated by Thomas Kथà¤nig <tkoenig@gcc.gnu.org>: https://gcc.gnu.org/g:8d57c30611b05a89fd265f6c0a74fe829c21cd34 commit r11-879-g8d57c30611b05a89fd265f6c0a74fe829c21cd34 Author: José Rui Faustino de Sousa <jrfsousa@gmail.com> Date: Wed Jun 3 19:33:11 2020 +0200 Simple patch only add assumed-rank to the list of possible attributes. gcc/fortran/ChangeLog: 2020-06-03 José Rui Faustino de Sousa <jrfsousa@gmail.com> PR fortran/95214 PR fortran/66833 PR fortran/67938 * trans-expr.c (gfc_maybe_dereference_var): Add assumed-rank to character dummy arguments list of possible attributes. gcc/testsuite/ChangeLog: 2020-06-03 José Rui Faustino de Sousa <jrfsousa@gmail.com> PR fortran/95214 PR fortran/66833 PR fortran/67938 * gfortran.dg/PR95214.f90: New test.
Fixed on master, thank you for the bug report!