2018-07-02 Paul Thomas <pault@gcc.gnu.org>
commit082b5a237c296f36a28b74c9261123e4e00bc028
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2018 07:20:27 +0000 (2 07:20 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2018 07:20:27 +0000 (2 07:20 +0000)
tree8e2a752a33758a41f8ea754df5bc976c9cdd3edc
parenteb57efa5c6e0b0c3b5ff9c0b4b764d937c98731c
2018-07-02  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/45305
* expr.c : Add a prototype for scalarize_intrinsic_call.
(gfc_simplify_expr): Use scalarize_intrinsic_call for elemental
intrinsic function calls.
(scalarize_intrinsic_call): Add 'init_flag' argument. Check if
the expression or any of the actual argument expressions are
NULL. Before calling gfc_check_init_expr, check 'init_flag'.
Only simplify the scalarized expressions if there are no errors
on the stack.
(gfc_check_init_expr): Set 'init_flag' true in the call to
scalarize_intrinsic_call.

2018-07-02  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/45305
* gfortran.dg/scalarize_parameter_array_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262299 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/scalarize_parameter_array_2.f90 [new file with mode: 0644]