public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/52393] New: Erroneous parse of read statement with parenthesised expression in format
@ 2012-02-26 23:50 ian_harvey at bigpond dot com
  2012-02-27  8:08 ` [Bug fortran/52393] " burnus at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ian_harvey at bigpond dot com @ 2012-02-26 23:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52393

             Bug #: 52393
           Summary: Erroneous parse of read statement with parenthesised
                    expression in format
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ian_harvey@bigpond.com


With gfortran built from recent trunk revision 184585 on fedora 15 x86_64, the
following example:

PROGRAM ReadMeTwo
  IMPLICIT NONE
  CHARACTER(10) :: var
  READ ('(') // 'A)', var  
  PRINT *, var
END PROGRAM ReadMeTwo

gives:

$ gfortran -Wall -std=f2003 ReadMeTwo.f90
ReadMeTwo.f90:4.12:

  READ ('(') // 'A)', var
            1
Error: Expected variable in READ statement at (1)

I think the example is valid fortran and should compile without error.


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

end of thread, other threads:[~2012-02-27 10:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-26 23:50 [Bug fortran/52393] New: Erroneous parse of read statement with parenthesised expression in format ian_harvey at bigpond dot com
2012-02-27  8:08 ` [Bug fortran/52393] " burnus at gcc dot gnu.org
2012-02-27  9:32 ` ian_harvey at bigpond dot com
2012-02-27 10:26 ` [Bug fortran/52393] I/O: "READ format" statement with parenthesed default-char-expr burnus at gcc dot gnu.org
2012-02-27 10:34 ` ian_harvey at bigpond dot com

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).