re PR fortran/32464 (ICE: USE in contained subroutine)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 25 Jun 2007 18:27:59 +0000 (18:27 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 25 Jun 2007 18:27:59 +0000 (18:27 +0000)
commit8de10a622a1311281ab59cee7d56ade678afbfb1
tree7fff192c314fb9c9590eb4ed4bfd48f36a7d9f0e
parentc861db6620d5f4bdac9f361b678697ea7350dbd7
re PR fortran/32464 (ICE: USE in contained subroutine)

2007-06-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/32464
* resolve.c (check_host_association): Return if the old symbol
is use associated.  Introduce retval to reduce the number of
evaluations of the first-order return value.

PR fortran/31494
* match.c (gfc_match_call): If a host associated symbol is not
a subroutine, build a new symtree/symbol in the current name
space.

2007-06-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/32464
* gfortran.dg/host_assoc_function_2.f90: New test.

PR fortran/31494
* gfortran.dg/host_assoc_call_1.f90: New test.

From-SVN: r126000
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/host_assoc_call_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/host_assoc_function_2.f90 [new file with mode: 0644]