2014-02-01 Paul Thomas <pault@gcc.gnu.org>
commite6b9055742c9e58d717bedf78c374a484d919849
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Feb 2014 18:50:41 +0000 (1 18:50 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Feb 2014 18:50:41 +0000 (1 18:50 +0000)
tree0754839255200a09b43ee9c4cd2f13648314144e
parent69811c67b5668fd9ff2705e363f1e39f9a337d14
2014-02-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59906
* trans-stmt.c (gfc_add_loop_ss_code): In the case of character
SS_REFERENCE, use gfc_conv_string_parameter to ensure that a
pointer to the string is stored.
* trans-expr.c (gfc_conv_expr_reference): Likewise, use
gfc_conv_string_parameter to ensure that a pointer to is passed
to the elemental function.

2014-02-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59906
* gfortran.dg/elemental_subroutine_9.f90 : New test

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