Re: [PATCH, fortran] Fix Bug 124543 - INQUIRE: Sometimes returns incorrect values

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On 3/30/26 1:53 PM, Jerry D wrote:
--- snip ---
> 
> I will commit after some final testing here.
> 
> Thanks for the review.
> 
> Jerry
>

Committed:

commit r16-8338-g6c15bbe848826f7517d717ac80369590f5490437
Author: Jerry DeLisle <[email protected]>
Date:   Mon Mar 30 10:40:43 2026 -0700

     fortran: Fix several issues with INQUIRE and unconnected units.

             PR libfortran/124543

     libgfortran/ChangeLog:

             * io/inquire.c (inquire_via_unit): Fix return value for
             NAMED. Add check for ACTION. Fix return values for
             ENCODING, PENDING, READ, WRITE, READWRITE.
             (inquire_via_filename): Add checks for ACTION, DELIM,
             ASYNCHRONOUS, and PENDING. Fix return value for
             ENCODING.
             * io/unix.c (inquire_access): Change return value from no
             to unknown.

     gcc/testsuite/ChangeLog:

             * gfortran.dg/pr124543.f90: New test.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.