https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82018
Bug ID: 82018 Summary: [6/7/8 Regression] missing warnings with -Wconversion Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: janus at gcc dot gnu.org Target Milestone: --- Simple test case: implicit none integer(kind=4) :: i4 integer(kind=8) :: i8 i8 = 2.0 i4 = i8 end gfortran 5.4.1 with -Wall shows two warnings here: Wconversion.f90:5:5: i8 = 2.0 1 Warning: Possible change of value in conversion from REAL(4) to INTEGER(8) at (1) [-Wconversion] Wconversion.f90:6:5: i4 = i8 1 Warning: Possible change of value in conversion from INTEGER(8) to INTEGER(4) at (1) [-Wconversion] Both are correct. Unfortunately the first one has gone missing with version 6 and up (I tried 6.3 and 7.1).