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

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Dec 28 08:55:00 GMT 2018


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" }
> 
> ?
> 
> Otherwise the patch works as expected.
> 
> Thank for the fix.
> 

For the record, here's the commit message and patch that I committed.

2018-12-27  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/81027
	* expr.c (gfc_check_init_expr): Distinguish assumed-shape versus
	deferred-shape dummy arguments in an error message.

2018-12-27  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/81027
	* gfortran.dg/pr81027.f90: New test.
	* gfortran.dg/initialization_7.f90: Update error message.
-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr81027.diff
Type: text/x-diff
Size: 1987 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20181228/88a4467a/attachment.bin>


More information about the Fortran mailing list