In g77 you define a typeless BOZ constant that can be assigned to any other type, using the formats '....'X, '....'Z etc. This allows PARAMETERs to be defined like:
PROGRAM TLBOZ DOUBLE PRECISION inf, nan PARAMETER ( inf = '7FF0000000000000'Z ) PARAMETER ( nan = 'FFF8000000000000'X ) print *, inf, nan END The relevant g77 description is at: http://gcc.gnu.org/onlinedocs/gcc-3.4.1/g77/Constants.html This is related to bug 18026. -- Summary: g77-style typeless BOZ constants not implemented Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: p dot w dot draper at durham dot ac dot uk CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: i386-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23074