[Bug fortran/65454] Extending both forms of relational operators

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 9 19:16:56 GMT 2021


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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:b2713e9f16d3f3597d71e4be6384ecd788684936

commit r12-4274-gb2713e9f16d3f3597d71e4be6384ecd788684936
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sat Oct 9 21:16:32 2021 +0200

    Fortran: accept both old and new-style relational operators in USE, ONLY

    F2018:10.1.5.5.1(2) requires the same interpretation of old and new-style
    relational operators.  As gfortran internally distinguishes between
    these versions, we must match equivalent notations in
            USE module, ONLY: OPERATOR(op)
    statements when reading modules.

    gcc/fortran/ChangeLog:

            PR fortran/65454
            * module.c (read_module): Handle old and new-style relational
            operators when used in USE module, ONLY: OPERATOR(op).

    gcc/testsuite/ChangeLog:

            PR fortran/65454
            * gfortran.dg/interface_operator_3.f90: New test.


More information about the Gcc-bugs mailing list