[patch, libgfortran] Fix PR27304 Data descriptors exhausted

Jerry DeLisle jvdelisle@verizon.net
Thu Apr 27 05:49:00 GMT 2006


:ADDPATCH fortran:

The attached patch adds a run time error when there are no data descriptors 
available in a format string for the data.

This gives a runtime error for the test case in the pr.  Regression tested, NIST 
tested.

I have attached a test case so you can see the behavior.  I have not got the 
dg-do magic right yet, but you can get the idea. (Don't no why I have brain 
block on that testsuite magic)

OK for trunk and 4.1?  testcase to follow when I fix it.

Regards,

Jerry

2006-04-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/27304
	* io/transfer.c (formatted_transfer_scaler):  Generate error if data
	descriptors are exhausted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr27304.diff
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060427/28212646/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmt_exhaust.f90
Type: application/x-extension-f90
Size: 392 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060427/28212646/attachment-0001.bin>


More information about the Gcc-patches mailing list