public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/98825] New: Unexpected behavior of FORTRAN FORMAT expressions when suppressing new line with '$'
@ 2021-01-25 16:51 max.pd at gmx dot de
  2021-01-25 18:09 ` [Bug libfortran/98825] " dominiq at lps dot ens.fr
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: max.pd at gmx dot de @ 2021-01-25 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98825
           Summary: Unexpected behavior of FORTRAN FORMAT expressions when
                    suppressing new line with '$'
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: max.pd at gmx dot de
  Target Milestone: ---

Created attachment 50046
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50046&action=edit
commented FORTRAN77 code for bug reproduction

!> given a format statement like this:

   10 FORMAT (I3,$)

!> the program should suppress a new line
!> on formatting data for format expressions
!> ending with ',$'. This works well for
!> single values:

      WRITE (*,10) 1

!> The unexpected behavior occurs
!> When multiple values are given:

      WRITE (*,10) 2,3,4,5

!> Now the program will suppress
!> only the last new line. This is
!> unexpected behavior, as the whole format
!> expression should apply to each value,
!> not only to the last one.

!> You can reproduce the unexpected behavior
!> compiling this bug report.
!> A copy of this source code is attached.

      PRINT *
      PRINT *,' correct output should look like this:'
      PRINT *,' 1  2  3  4  5'
      END

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-02-13 21:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 16:51 [Bug libfortran/98825] New: Unexpected behavior of FORTRAN FORMAT expressions when suppressing new line with '$' max.pd at gmx dot de
2021-01-25 18:09 ` [Bug libfortran/98825] " dominiq at lps dot ens.fr
2021-01-25 20:27 ` max.pd at gmx dot de
2021-01-25 23:59 ` max.pd at gmx dot de
2021-01-27  2:27 ` jvdelisle at charter dot net
2021-01-27 16:40 ` max.pd at gmx dot de
2021-01-30  4:30 ` jvdelisle at charter dot net
2021-01-31  3:02 ` max.pd at gmx dot de
2021-01-31  3:58 ` jvdelisle at charter dot net
2021-02-01  2:37 ` jvdelisle at charter dot net
2021-02-11  3:38 ` cvs-commit at gcc dot gnu.org
2021-02-13 21:42 ` jvdelisle at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).