public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line
@ 2015-01-06  5:59 thfanning at gmail dot com
  2015-01-09 10:30 ` [Bug fortran/64506] " dominiq at lps dot ens.fr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: thfanning at gmail dot com @ 2015-01-06  5:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64506
           Summary: FORMAT Parse Error with Continuation Line
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thfanning at gmail dot com

Created attachment 34385
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34385&action=edit
Sample program to illustrate parse error.

In a FORMAT statement, a character literal immediately followed by a
continuation character (&) and then a comment character (!) results in a parse
error. A simple program is attached that implements the following statements:

100 format('This format is OK.'&
    )
200 format('This format fails.'&!comment
    )
300 format('This format fails.'& !comment
    )
400 format('This format is OK.' &!comment
    )
500 format('This format is OK.' & !comment
    )

Compiling this results in the following:

200 format('This format fails.'&!comment
                                1
Error: Unexpected element '&' in format string at (1)
gfortran_parse_error.f90:13.32:

300 format('This format fails.'& !comment
                                1
Error: Unexpected element '&' in format string at (1)


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

end of thread, other threads:[~2015-03-01  2:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06  5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
2015-01-09 10:30 ` [Bug fortran/64506] " dominiq at lps dot ens.fr
2015-02-01 20:42 ` burnus at gcc dot gnu.org
2015-02-13 16:58 ` jvdelisle at gcc dot gnu.org
2015-02-13 17:09 ` jvdelisle at gcc dot gnu.org
2015-02-17 20:13 ` jvdelisle at gcc dot gnu.org
2015-03-01  2:29 ` 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).