[committed] Fix for PR123029 pushed as obvious.

Message ID 34b782b3-015a-4634-bd9c-702e4319f3c3@gmail.com
State New
Headers
Series [committed] Fix for PR123029 pushed as obvious. |

Commit Message

Jerry D Jan. 6, 2026, 10:54 p.m. UTC
  Pushed after regression testing on x86_64.

commit abf001f5a52cb2f94eaad7a6ee25b61de0bec9a0 (HEAD -> master, origin/master, 
origin/HEAD)
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
Date:   Tue Jan 6 14:47:49 2026 -0800

     Fortran: Allow BLANK= in OPEN with -std=f95

             PR fortran/123029

     gcc/fortran/ChangeLog:

             * io.cc (check_open_constraints): Delete erroneous check.
  

Patch

diff --git a/gcc/fortran/io.cc b/gcc/fortran/io.cc
index 284a8f4187c..5bffed22eb8 100644
--- a/gcc/fortran/io.cc
+++ b/gcc/fortran/io.cc
@@ -2247,10 +2247,6 @@  check_open_constraints (gfc_open *open, locus *where)
    /* Checks on the BLANK specifier.  */
    if (open->blank)
      {
-      if (!gfc_notify_std (GFC_STD_F2003, "BLANK= at %L "
-                          "not allowed in Fortran 95", &open->blank->where))
-       return false;
-
        if (open->blank->expr_type == EXPR_CONSTANT)
         {
           static const char *blank[] = { "ZERO", "NULL"