diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-09-02 15:58:26 -0700 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-09-02 15:58:26 -0700 |
commit | 071b4126c613881f4cb25b4e5c39032964827f88 (patch) | |
tree | 7ed805786566918630d1d617b1ed8f7310f5fd8e /gcc/fortran/io.cc | |
parent | 845d23f3ea08ba873197c275a8857eee7edad996 (diff) | |
parent | caa1c2f42691d68af4d894a5c3e700ecd2dba080 (diff) | |
download | gcc-devel/gfortran-test.zip gcc-devel/gfortran-test.tar.gz gcc-devel/gfortran-test.tar.bz2 |
Merge branch 'master' into gfortran-testdevel/gfortran-test
Diffstat (limited to 'gcc/fortran/io.cc')
-rw-r--r-- | gcc/fortran/io.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/fortran/io.cc b/gcc/fortran/io.cc index 4d28c2c..45cac5e 100644 --- a/gcc/fortran/io.cc +++ b/gcc/fortran/io.cc @@ -1129,13 +1129,16 @@ data_desc: break; case FMT_H: - if (!(gfc_option.allow_std & GFC_STD_GNU) && !inhibit_warnings) + if (!(gfc_option.allow_std & GFC_STD_LEGACY)) { - if (mode != MODE_FORMAT) - format_locus.nextc += format_string_pos; - gfc_warning (0, "The H format specifier at %L is" - " a Fortran 95 deleted feature", &format_locus); + error = G_("The H format specifier at %L is a Fortran 95 deleted" + " feature"); + goto syntax; } + if (mode != MODE_FORMAT) + format_locus.nextc += format_string_pos; + gfc_warning (0, "The H format specifier at %L is" + " a Fortran 95 deleted feature", &format_locus); if (mode == MODE_STRING) { format_string += value; @@ -1144,7 +1147,7 @@ data_desc: } else { - while (repeat >0) + while (repeat > 0) { next_char (INSTRING_WARN); repeat -- ; |