2018-07-02 Paul Thomas <pault@gcc.gnu.org>
commita027012a4efd551a188a02aae0248d445f6ebbfb
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2018 07:24:43 +0000 (2 07:24 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2018 07:24:43 +0000 (2 07:24 +0000)
treeee97c942c44416e42892a42c340f5f6f8a2ce1cb
parent082b5a237c296f36a28b74c9261123e4e00bc028
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@262300 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_50.f90 [new file with mode: 0644]