]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran : Don't warn for LOGICAL kind conversion PR96319
authorMark Eggleston <markeggleston@gcc.gnu.org>
Mon, 27 Jul 2020 14:28:50 +0000 (15:28 +0100)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:20:03 +0000 (13:20 -0300)
commiteaeca2dd9cff862179fd17638471f553261a707e
tree0771550dc9496bd6788688f5cf44ab80ccaa53fe
parent1694aebff58ce6eefe1243a931996e44c1adb2c8
Fortran  : Don't warn for LOGICAL kind conversion PR96319

LOGICAL values will always fit regardless of kind so there
is no need for warnings.

2020-07-29  Mark Eggleston  <markeggleston@gcc.gnu.org>

gcc/fortran/

PR fortran/96319
* intrinsic.c (gfc_convert_type_warn):  Add check for
LOGICAL type so that warnings are not output.

2020-07-29  Mark Eggleston  <markeggleston@gcc.gnu.org>

gcc/testsuite/

PR fortran/96319
* gfortran.dg/pr96319.f90: New test.
gcc/fortran/intrinsic.c
gcc/testsuite/gfortran.dg/pr96319.f90 [new file with mode: 0644]