------- Comment #2 from burnus at gcc dot gnu dot org 2008-01-12 22:28 ------- Patch. I think this is the only place to change, interface's compare_actual_formal is actually ok.
Index: gcc/fortran/check.c =================================================================== --- gcc/fortran/check.c (revision 131492) +++ gcc/fortran/check.c (working copy) @@ -2394,7 +2394,7 @@ gfc_check_shape (gfc_expr *source) ar = gfc_find_array_ref (source); - if (ar->as && ar->as->type == AS_ASSUMED_SIZE) + if (ar->as && ar->as->type == AS_ASSUMED_SIZE && ar->type == AR_FULL) { gfc_error ("'source' argument of 'shape' intrinsic at %L must not be " "an assumed size array", &source->where); -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2008-01-12 21:24:39 |2008-01-12 22:28:20 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34759