aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.cc
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2024-11-22 19:29:42 -0800
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2024-11-23 09:45:36 -0800
commitfd118f4c54c374882bf91c9e61b756767c0d3634 (patch)
tree23b3dc7b88306b8d736cdaa3240fea76f2fc9565 /gcc/function.cc
parent75405ead52a987adb70576b66a4220ec490c523d (diff)
downloadgcc-fd118f4c54c374882bf91c9e61b756767c0d3634.zip
gcc-fd118f4c54c374882bf91c9e61b756767c0d3634.tar.gz
gcc-fd118f4c54c374882bf91c9e61b756767c0d3634.tar.bz2
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 'gcc/function.cc')
0 files changed, 0 insertions, 0 deletions