]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/92018 (ICE in gfc_conv_constant_to_tree, at fortran/trans-const.c:370)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 11 Oct 2019 17:52:27 +0000 (17:52 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 11 Oct 2019 17:52:27 +0000 (17:52 +0000)
commit405e87e8259b6e70bdf31544bb0e5d147e6f301a
tree391bc2773fd2595ed167845cf3a458678e069741
parentc988c699fa09c91485afa24526f965e3fd4269d6
re PR fortran/92018 (ICE in gfc_conv_constant_to_tree, at fortran/trans-const.c:370)

2019-10-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/92018
* check.c (reset_boz): New function.
(illegal_boz_arg, boz_args_check, gfc_check_complex, gfc_check_float,
gfc_check_transfer): Use it.
(gfc_check_dshift): Use reset_boz, and re-arrange the checking to
help suppress possible run-on errors.
(gfc_check_and): Restore checks for valid argument types.  Use
reset_boz, and re-arrange the checking to help suppress possible
  un-on errors.
* resolve.c (resolve_function): Actual arguments cannot be BOZ in
a function reference.

2019-10-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/92018
* gfortran.dg/gnu_logical_2.f90: Update dg-error regex.
* gfortran.dg/pr81509_2.f90: Ditto.
* gfortran.dg/pr92018.f90: New test.

From-SVN: r276898
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gnu_logical_2.f90
gcc/testsuite/gfortran.dg/pr81509_2.f90
gcc/testsuite/gfortran.dg/pr92018.f90 [new file with mode: 0644]