diff options
author | Harald Anlauf <anlauf@gmx.de> | 2022-10-16 20:32:27 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2022-10-17 18:59:24 +0200 |
commit | 34cecde675be67543b386b593132ce8b1bb0a3ab (patch) | |
tree | fa13d8d62eea22add2b8185ed6fe1be0776d27af /libgcc | |
parent | 8950288333162caa68b85c71ed2d02f40976ddb9 (diff) | |
download | gcc-34cecde675be67543b386b593132ce8b1bb0a3ab.zip gcc-34cecde675be67543b386b593132ce8b1bb0a3ab.tar.gz gcc-34cecde675be67543b386b593132ce8b1bb0a3ab.tar.bz2 |
Fortran: check type of operands of logical operations, comparisons [PR107272]
gcc/fortran/ChangeLog:
PR fortran/107272
* arith.cc (gfc_arith_not): Operand must be of type BT_LOGICAL.
(gfc_arith_and): Likewise.
(gfc_arith_or): Likewise.
(gfc_arith_eqv): Likewise.
(gfc_arith_neqv): Likewise.
(gfc_arith_eq): Compare consistency of types of operands.
(gfc_arith_ne): Likewise.
(gfc_arith_gt): Likewise.
(gfc_arith_ge): Likewise.
(gfc_arith_lt): Likewise.
(gfc_arith_le): Likewise.
gcc/testsuite/ChangeLog:
PR fortran/107272
* gfortran.dg/pr107272.f90: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions