re PR fortran/30746 (50th Anniversary Bug - Forward reference to contained function)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 12 May 2007 06:19:43 +0000 (06:19 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 12 May 2007 06:19:43 +0000 (06:19 +0000)
commiteb77cddf4276f2ae7c6745cd7cf82dd49327dc4f
treedd588c8fbf0e9cef5549e43a87d6b2ca8e4a03a1
parente39187d4f39e1ce1184316fa1e3886439dd23818
re PR fortran/30746 (50th Anniversary Bug - Forward reference to contained function)

2007-05-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30746
* resolve.c (check_host_association): New function that detects
incorrect host association and corrects it.
(gfc_resolve_expr): Call the new function for variables and
functions.
* match.h : Remove prototype for gfc_match_rvalue.
* gfortran.h : Add prototype for gfc_match_rvalue.

2007-05-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30746
* gfortran.dg/host_assoc_function_1.f90: New test.

From-SVN: r124633
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/match.h
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/host_assoc_function_1.f90 [new file with mode: 0644]