[PATCH] fortran/50407 -- Format strings from user-defined operator or kind type string

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Oct 16 20:59:00 GMT 2011


The attach patch fixes the construction of a format string
from a user-defined operator or from a string with a kind
type prefix.  In short, the patch allows

print 2.ip.8  ! .ip. is a user-defined operator
print 1_'(A)' ! 1_ designates a default character type

Prior to this patch gfortran would try to match a statement
label.

2011-10-16  Steven G. Kargl  <kargl@gcc.gnu.org>

	* io.c (match_dt_format): Match a user-defined operator or a kind
	type prefixed string.

2011-10-16  Steven G. Kargl  <kargl@gcc.gnu.org>

	* gfortran.dg/format_string.f: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: format_string.diff
Type: text/x-diff
Size: 2330 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111016/a5107176/attachment.bin>


More information about the Gcc-patches mailing list