[patch, fortran] DTIO write format stored in a string leads to severe errors

Jerry DeLisle jvdelisle@charter.net
Sat Jan 13 21:32:00 GMT 2018


I plan to commit the attached patch which eliminates the offending behavior and
allows the test cases to run.

I opened a new PR to address the remaining issues.

See Bug 83829 - Implement runtime checks for DT format specifier and alignment
with effective item.

Regression tested on x86_64-pc-linux-gnu.

The patch is simple. I will roll in a test case soon.

Regards,

Jerry

2018-01-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/82007
	* resolve.c (resolve_transfer): Delete code looking for 'DT'
	format specifiers in format strings. Set formatted to true if a
	format string or format label is present.
	* trans-io.c (get_dtio_proc): Likewise. (transfer_expr): Fix
	whitespace.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr82007.diff
Type: text/x-patch
Size: 2430 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180113/f6314509/attachment.bin>


More information about the Gcc-patches mailing list