]> git.ipfire.org Git - thirdparty/gcc.git/commit
2019-09-23 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 2019 09:19:10 +0000 (09:19 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 2019 09:19:10 +0000 (09:19 +0000)
commitfaf863fe1aab4870e7f55de105311c5d70283071
tree4f354f0a71b207100c814aa1f714f5f8d8d9927b
parent3c01f4ef6906119994d7e481d6b3ae62e9033443
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276051 138bc75d-0d04-0410-961f-82ee72b054a4
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]