Hi Steve, The test gfortran.dg/pr81027.f90 succeeds without the patch. Would not it be better to replace
{ dg-error "is not permitted in an" } with something such as { dg-error "Assumed-shape array" } ? Otherwise the patch works as expected. Thank for the fix. Dominique