https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91497
Bug ID: 91497 Summary: -Wconversion warns when doing explicit type conversion Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: manfred99 at gmx dot ch Target Milestone: --- real b double precision a PARAMETER(a=3.1415927d0) b=REAL(a) b=REAL(a, kind=4) end gives a.f:5:13: 5 | b=REAL(a) | 1 Warning: Change of value in conversion from 'REAL(8)' to 'REAL(4)' at (1) [-Wconversion] a.f:6:13: 6 | b=REAL(a, kind=4) | 1 Warning: Change of value in conversion from 'REAL(8)' to 'REAL(4)' at (1) [-Wconversion] for current trunk (no new regression though). gfortran should not warn about explicit type conversions with REAL(), INT() etc. Otherwise there is no possibility to silence this warning.