re PR fortran/59906 (error: size of variable '<anonymous>' is too large)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 1 Feb 2014 18:50:41 +0000 (18:50 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 1 Feb 2014 18:50:41 +0000 (18:50 +0000)
commitda78a067694a5bee1394a4bb2e7272214cb419bb
tree0754839255200a09b43ee9c4cd2f13648314144e
parentbca420ed5f40d58e929e1da497785ea2d745ebfb
re PR fortran/59906 (error: size of variable '<anonymous>' is too large)

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

From-SVN: r207389
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]