Re: [PATCH] PR fortran/81027 -- Issue error for assumed-shape array

2018-12-27 Thread Steve Kargl
On Thu, Dec 27, 2018 at 12:54:30PM +0100, Dominique d'Humières wrote: > 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" } > >

Re: [PATCH] PR fortran/81027 -- Issue error for assumed-shape array

2018-12-27 Thread Steve Kargl
On Thu, Dec 27, 2018 at 12:54:30PM +0100, Dominique d'Humières wrote: > 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" } >

Re: [PATCH] PR fortran/81027 -- Issue error for assumed-shape array

2018-12-27 Thread Dominique d'Humières
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

[PATCH] PR fortran/81027 -- Issue error for assumed-shape array

2018-12-25 Thread Steve Kargl
Tested on i586-*-freebsd. OK to commit? 2018-12-25 Steven G. Kargl PR fortran/81027 * expr.c (gfc_check_init_expr): Issue an error message for an assumed-shape array as opposed to a deferred-shape array. 2018-12-25 Steven G. Kargl PR fortran/81027