https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123151

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gaius Mulley <[email protected]>:

https://gcc.gnu.org/g:84ad0d86df69b3c1b5970efa490eeafc5266802a

commit r16-6211-g84ad0d86df69b3c1b5970efa490eeafc5266802a
Author: Gaius Mulley <[email protected]>
Date:   Wed Dec 17 13:00:33 2025 +0000

    PR modula2/123151: Unable to use IsNoError with Close in FIO library module

    This is a bug fix to the library module FIO to allow Close to return a
    boolean indicating success.  Most probably in the future there should be
    a GetStatus procedure provided and the FileStatus enumeration inside
    FIO.mod should also be exported.

    gcc/m2/ChangeLog:

            PR modula2/123151
            * gm2-libs/FIO.def (IsError): New procedure function.
            (IsActive): Rewrite the comment.
            (Exists): Ditto.
            (OpenToRead): Ditto.
            (OpenToWrite): Ditto.
            (Close): Add an optional BOOLEAN return result.
            * gm2-libs/FIO.mod (Close): Reimplement with an
            optional BOOLEAN return result.

    gcc/testsuite/ChangeLog:

            PR modula2/123151
            * gm2/pimlib/base/run/pass/FIO.mod: Reimplement.
            Copy from gm2-libs/FIO.mod since FIO.def api has changed.
            * gm2/pimlib/run/pass/testclose.mod: New test.

    Signed-off-by: Gaius Mulley <[email protected]>

Reply via email to