public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] PR fortran/67803 -- Check CHARACTER array constructor element types
@ 2015-11-13 21:57 Steve Kargl
  2015-11-13 21:57 ` Steve Kargl
  2015-11-14  7:03 ` Jerry DeLisle
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Kargl @ 2015-11-13 21:57 UTC (permalink / raw)
  To: fortran, gcc-patches

The attached patch fixes an ICE that occurs in arith.c(gfc_arith_concat)
because op1 and op2 have incompatible typespecs.  The fix is actually
implemented in array.c(gfc_match_array_constructor) where the types
of the elements in a constructor are compared to the typespec that was
specified in the constructor.  See testcase for examples.  Built
and regression tested on x86_64-*-freebsd.  OK to commit?

2015-11-13  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/67803
	* array.c (gfc_match_array_constructor): If array constructor included
	a CHARACTER typespec, check array elements for compatible type.

2015-11-13  Steven G. Kargl  <kargl@gcc.gnu.org>
 
	PR fortran/67803
	* gfortran.dg/pr67803.f90: New test.

-- 
Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-14  7:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 21:57 [PATCH] PR fortran/67803 -- Check CHARACTER array constructor element types Steve Kargl
2015-11-13 21:57 ` Steve Kargl
2015-11-13 22:05   ` Steve Kargl
2015-11-14  7:03 ` Jerry DeLisle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).