g77 minor bugs (egcs-2.91.60 19981201 (egcs-1.1.1 release))

Brian McIlwrath bkm@star.rl.ac.uk
Tue Apr 20 08:43:00 GMT 1999

Given the following simple program

      double precision a
      a = 1.234567890123456d0
      print *,a
      write(*,'(D19.14)') a

g77 outputs


Which in neither case would seem to me to be wholly satisfactory. Surely
the PRINT * should output to full DOUBLE PRECISION accuracy and the
second WRITE should output the number as .12345678901235D+01


Brian McIlwrath

   Brian McIlwrath,                                e-mail: bkm@star.rl.ac.uk
   Starlink Project,                               Tel: +44 (0)1235 446254
   Space Science Department,                       Fax: +44 (0)1235 446667
   Rutherford Appleton Laboratory, UK.

More information about the Gcc-bugs mailing list