[patch, libgfortran] Fix PR24459 Namelist problem

Jerry DeLisle jvdelisle@verizon.net
Mon May 1 01:08:00 GMT 2006


:ADDPATCH fortran:

Hi All!

This patch finalizes the fix for this PR.  Paul Thomas gave me a hint on this in 
  realizing the mechanism to process more data than needed was in place.  The 
patch simply leaves the loop spec index end value at their default and only 
updates the start and step values when parsing array qualifiers.

Its very simple, but took me a while to spot this!

This allows the original test case in the PR to pass as well as handling all 
original test cases.

The test case and namelist provided is to allow everyone to see the results 
easily.  I will turn this test case into a dg-run acceptable form before 
committing the patch.

Comments would be appreciated.  If anyone has some other test cases you can 
think of please try and see if it works correctly.

Regression tested and NIST tested on i686.

OK for trunk and then 4.1 branch in about a week?

Regards,

Jerry

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

	PR libgfortran/24459
	
	* io/list_read.c (nml_parse_qualifier): Leave end value in loop spec
	at default value.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: diag3.f
Type: text/x-fortran
Size: 583 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060501/f498ef76/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diag3.nml
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060501/f498ef76/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr24459-2.diff
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060501/f498ef76/attachment-0001.bin>


More information about the Gcc-patches mailing list