[patch, fortran] PR35754 -std=f95: Reject "1P2E12.4" w/o a comma after the "P"
Jerry DeLisle
jvdelisle@verizon.net
Sun Aug 23 19:34:00 GMT 2009
The attached patch fixes the diagnostics for the subject case and adds
checks for the acceptable format specifiers after a P without a comma. I
will be looking into the runtime side of these fixes after this is
committed.
Regression tested on x86-64 Linux. Test case included.
OK for trunk.
Note: The patch may be offset a bit since my trunk has the patch for
37446 in it.
Regards,
Jerry
2009-08-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/35754
* io.c (check_format): Add checks for comma and the allowed
format specifiers after the 'P' specifier.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr35754.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090823/252d22d8/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fmt_error_8.f
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090823/252d22d8/attachment-0001.ksh>
More information about the Fortran
mailing list