[multiple changes]
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 27 Jan 2013 07:09:06 +0000 (07:09 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 27 Jan 2013 07:09:06 +0000 (07:09 +0000)
commitaa271860870b642b35b39938fdb39ff30af70c43
treefe0ca5f04c7acfc990df2467d358c30147ce59fc
parent170c0f31d1e0080e8dba330d39fb37399df64b76
[multiple changes]

2013-01-27 Paul Thomas  <pault@gcc.gnu.org>

PR fortran/55789
PR fortran/56047
* gfortran.h : Add associate_var to symbol_attr.
* resolve.c (resolve_assoc_var): Set associate_var attribute.
If the target class_ok is set, set it for the associate
variable.
* check.c (allocatable_check): Associate variables should not
have the allocatable attribute even if their symbols do.
* class.c (gfc_build_class_symbol): Symbols with associate_var
set will always have a good class container.

2013-01-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/55789
* gfortran.dg/associate_14.f90: New test.

PR fortran/56047
* gfortran.dg/associate_13.f90: New test.

From-SVN: r195492
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/fortran/class.c
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_13.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/associate_14.f90 [new file with mode: 0644]