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)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Wed, 29 Jul 2020 11:55:17 +0000 (12:55 +0100)
commit6af8284719d151087a1c1e4da210cc5a9fa4a478
tree877e0db577ad1ac46478d4cff20c6b6d9e7dfdc2
parent2b2f3867c09c8977268b8ffbd646ac242188b335
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]