[patch, libgfortran] Fix PR24459 Namelist problem
Jerry DeLisle
jvdelisle@verizon.net
Wed May 17 11:50:00 GMT 2006
:REVIEWMAIL:
The attached is an updated patch against current trunk. This patch revises the
behavior as follows:
With no compile options (ie. -std=gnu or default) the expanded namelist read
behavior is allowed.
With -pedantic a run time warning is issued using existing std_notify functions
if a non-standard read occurs.
With -std=f95 a run time error is issued if a non-standard read occurs.
A review of the patch will show handling a few corner cases that resulted in
emitting warnings when we should not. These false warnings are avoided by
setting the expanded_read flag to zero in those cases.
I have attached the test case that was submitted before. I could have included
a -pedantic on that and check for dg-output but I did not think I needed to test
this in the test-suite since the std_notify function exists already and is tested.
OK to commit to trunk and then 4.1?
Regards,
Jerry
2006-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24459
* io/list_read.c (nml_parse_qualifier): Leave loop spec end value
at default value unless -std=f95 or if an array section
is specified in namelist input. Warn if -pedantic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr24459-5.diff
Type: text/x-patch
Size: 4967 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060517/32913884/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_24.f90
Type: application/x-extension-f90
Size: 1725 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060517/32913884/attachment-0001.bin>
More information about the Gcc-patches
mailing list