]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/91729 (ICE in gfc_match_select_rank, at fortran/match.c:6586)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 23 Sep 2019 09:19:10 +0000 (09:19 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 23 Sep 2019 09:19:10 +0000 (09:19 +0000)
commit158ab204321cfa5fe5466faa5a12b3c38c45125a
tree4f354f0a71b207100c814aa1f714f5f8d8d9927b
parentb7bb3d35804f1d50d7dcfa18aacf1f91d898bb1f
re PR fortran/91729 (ICE in gfc_match_select_rank, at fortran/match.c:6586)

2019-09-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91729
* match.c (gfc_match_select_rank): Initialise 'as' to NULL.
Check for a symtree in the selector expression before trying to
assign a value to 'as'. Revert to gfc_error and go to cleanup
after setting a MATCH_ERROR.

2019-09-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91729
* gfortran.dg/select_rank_2.f90 : Add two more errors in foo2.
* gfortran.dg/select_rank_3.f90 : New test.

From-SVN: r276051
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/select_rank_2.f90
gcc/testsuite/gfortran.dg/select_rank_3.f90 [new file with mode: 0644]
This page took 0.059862 seconds and 5 git commands to generate.