]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: accept both old and new-style relational operators in USE, ONLY
authorHarald Anlauf <anlauf@gmx.de>
Sat, 9 Oct 2021 19:16:32 +0000 (21:16 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 9 Oct 2021 19:16:32 +0000 (21:16 +0200)
commitb2713e9f16d3f3597d71e4be6384ecd788684936
treed4c09d26a8eb6c2ccc7b234fbb13376aec327e2e
parent2b3014326fb883a96601a4dde295858d715289a7
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.
gcc/fortran/module.c
gcc/testsuite/gfortran.dg/interface_operator_3.f90 [new file with mode: 0644]