[PATCH] PR Fortran/83548 -- a LOGICAL fix

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Dec 25 19:45:00 GMT 2017


The attach patch fixes a problem when a LOGICAL subprogram
appears as the first element in an array constructor, which
is interpreted as a LOGICAL type-spec, which fails because
the argument is of type LOGICAL instead of INTEGER.

Regression tested on i686-*-freebsd and x86_64-*-freebsd.

OK to commit?

2017-12-25  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR Fortran/83548
	* match.c (gfc_match_type_spec): Check for LOGICAL conflict in
	type-spec versus LOGICAL intrinsic subprogram.

2017-12-25  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR Fortran/83548
	* gfortran.dg/array_constructor_type_22.f03: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr83548.diff
Type: text/x-diff
Size: 3333 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171225/17796e7b/attachment.bin>


More information about the Fortran mailing list