diff options
author | Harald Anlauf <anlauf@gmx.de> | 2022-10-11 20:37:42 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2022-10-11 23:04:32 +0200 |
commit | 53955284c031a17e6e49e730ef8947fe557ff35e (patch) | |
tree | 8b820f12b12da064fb8900ac90a100d8b236bb03 /libgcc | |
parent | 23c3cbaed36f6d2f3a7a64f6ebda69329723514b (diff) | |
download | gcc-53955284c031a17e6e49e730ef8947fe557ff35e.zip gcc-53955284c031a17e6e49e730ef8947fe557ff35e.tar.gz gcc-53955284c031a17e6e49e730ef8947fe557ff35e.tar.bz2 |
Fortran: check types of source expressions before conversion [PR107215]
gcc/fortran/ChangeLog:
PR fortran/107215
* arith.cc (gfc_int2int): Check validity of type of source expr.
(gfc_int2real): Likewise.
(gfc_int2complex): Likewise.
(gfc_real2int): Likewise.
(gfc_real2real): Likewise.
(gfc_complex2int): Likewise.
(gfc_complex2real): Likewise.
(gfc_complex2complex): Likewise.
(gfc_log2log): Likewise.
(gfc_log2int): Likewise.
(gfc_int2log): Likewise.
gcc/testsuite/ChangeLog:
PR fortran/107215
* gfortran.dg/pr107215.f90: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions