https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117820

            Bug ID: 117820
           Summary: Formatted output gives wrong result.
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jvdelisle at gcc dot gnu.org
  Target Milestone: ---

This test case couttesy of Malcom Cohen shows a formatted write problem.

Program oops

  Integer,Parameter :: i64 = Selected_Int_Kind(18)

  Integer(i64) x

  x = -Huge(x) - 1
  print *, i64
  print *,x

  Print '("B64.0 output = <",B64.0,">")',x

End Program

The output is 64 beutiful blanks. ;)

Reply via email to