[PATCH, libgfortran] PR24794 namelist input of character array

Jerry DeLisle jvdelisle@verizon.net
Sun Nov 20 06:17:00 GMT 2005


:REVIEWPATCH fortran:

Jerry DeLisle wrote:
> As a follow-on I will check that all other types are handled correctly 
> in this situation, not just character types.
>

After studying the F95 standard and trying some more test cases I have found
that I need to revise this patch to return a "NULL".  I was thrown off track 
because I was comparing results with ifort which initializes variables that are 
"undefined".  gfortran does not do that.

The attached is the corrected patch which gives the correct behavior and a 
corrected test case.  The other two test cases (namelist_14.f90 and 
namelist_15.f90) remain the same as my previous submission.  I have also looked 
at integer, real, and logical cases and those are working OK.

Sorry for the iteration.  Regression tested again and NIST tested OK.

OK for trunk?  OK for 4.0-branch?

Regards,

Jerry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list_read.diff
Type: text/x-patch
Size: 682 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20051120/80df3e87/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_21.f90
Type: application/x-extension-f90
Size: 1251 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20051120/80df3e87/attachment-0001.bin>


More information about the Gcc-patches mailing list