http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55314
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-11-24 22:17:40 UTC --- Author: tkoenig Date: Sat Nov 24 22:17:35 2012 New Revision: 193784 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193784 Log: 2012-11-24 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/55314 Backport from trunk * resolve.c (resolve_allocate_deallocate): Compare all subscripts when deciding if to reject a (de)allocate statement. 2012-11-24 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/55314 Backport from trunk * gfortran.dg/allocate_error_4.f90: New test. Added: branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/allocate_error_4.f90 Modified: branches/gcc-4_6-branch/gcc/fortran/ChangeLog branches/gcc-4_6-branch/gcc/fortran/resolve.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog