Next: , Previous: Better Pedantic Compilation, Up: Missing Features


15.3.40 Warn About Implicit Conversions

g77 needs a -Wpromotions option to warn if source code appears to expect automatic, silent, and somewhat dangerous compiler-assisted conversion of REAL(KIND=1) constants to REAL(KIND=2) based on context.

For example, it would warn about cases like this:

     DOUBLE PRECISION FOO
     PARAMETER (TZPHI = 9.435784839284958)
     FOO = TZPHI * 3D0