2016-10-21 Paul Thomas <pault@gcc.gnu.org>
commit60e91af4cf1337f3ce8d61b5c8d6b23aec89b4dd
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2016 12:50:56 +0000 (21 12:50 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2016 12:50:56 +0000 (21 12:50 +0000)
tree8c272f3218f0e29691939ff45b3f7f5bd4e1a7af
parentbc5cd04e5abf132003d84c8b0fb9420479b70d35
2016-10-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/69566
* resolve.c (fixup_array_ref): New function.
(resolve_select_type): Gather up the rank and array reference,
if any, from the selector. Fix up the 'associate name' and the
'associate entities' as necessary.
* trans-expr.c (gfc_conv_class_to_class): If the symbol backend
decl is a FUNCTION_DECL, use the 'fake_result_decl' instead.

2016-10-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/69566
* gfortran.dg/select_type_37.f03: New test.

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