diff options
| author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2024-11-22 19:29:42 -0800 |
|---|---|---|
| committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2024-11-23 09:45:36 -0800 |
| commit | fd118f4c54c374882bf91c9e61b756767c0d3634 (patch) | |
| tree | 23b3dc7b88306b8d736cdaa3240fea76f2fc9565 /libcpp | |
| parent | 75405ead52a987adb70576b66a4220ec490c523d (diff) | |
Fortran: Reject missing comma in format.
Standards require rejecting formats where descriptors
are not separated by commas. This change allows this
the missing comma to be accepted only with
-std=legacy.
PR fortran/88052
libgfortran/ChangeLog:
* io/format.c (parse_format_list): Reject missing comma in
format strings by default or if -std=f95 or higher. This is
a runtime error.
gcc/testsuite/ChangeLog:
* gfortran.dg/comma_format_extension_4.f: Add missing comma.
* gfortran.dg/dollar_edit_descriptor_2.f: Likewise.
* gfortran.dg/fmt_error_9.f: Likewise.
* gfortran.dg/fmt_g0_5.f08: Likewise.
* gfortran.dg/fmt_t_2.f90: Likewise.
* gfortran.dg/pr88052.f90: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions
