https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55789
--- Comment #17 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Sat May 24 15:36:14 2014 New Revision: 210893 URL: http://gcc.gnu.org/viewcvs?rev=210893&root=gcc&view=rev Log: 2014-05-24 Dominique d'Humieres <domi...@lps.ens.fr> Backport r195492 and r195815 2013-01-27 Paul Thomas <pa...@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-02-06 Paul Thomas <pa...@gcc.gnu.org> PR fortran/55789 * trans-array.c (trans_array_constructor): Remove condition 'dynamic' = true if the loop ubound is a VAR_DECL. Modified: branches/gcc-4_7-branch/gcc/fortran/ChangeLog branches/gcc-4_7-branch/gcc/fortran/check.c branches/gcc-4_7-branch/gcc/fortran/class.c branches/gcc-4_7-branch/gcc/fortran/gfortran.h branches/gcc-4_7-branch/gcc/fortran/resolve.c branches/gcc-4_7-branch/gcc/fortran/trans-array.c