re PR fortran/78757 (ICE with function returning a pointer to a character)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Dec 2016 19:41:13 +0000 (20:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Dec 2016 19:41:13 +0000 (20:41 +0100)
commitc2d42d16195d87ad6fb063a0db0287ad197a972b
tree30ead16302dba1ee72ae8b041d1a060178ebf480
parentd380fed1e0862ddb32ee911335af9053d0e70894
re PR fortran/78757 (ICE with function returning a pointer to a character)

PR fortran/78757
* trans-expr.c (gfc_conv_procedure_call): Emit DECL_EXPR for the
type pstr var points to.

* gfortran.dg/char_result_16.f90: New test.

From-SVN: r243761
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_result_16.f90 [new file with mode: 0644]