public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35871]  New: write(*,*), 'teste' does not give error
@ 2008-04-08 11:30 leandromartinez dot spam at gmail dot com
  2008-04-08 11:31 ` [Bug fortran/35871] " leandromartinez dot spam at gmail dot com
  2008-04-08 12:01 ` burnus at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: leandromartinez dot spam at gmail dot com @ 2008-04-08 11:30 UTC (permalink / raw)
  To: gcc-bugs

Not sure if it is a bug, at least is a situation in which 
we would expect a error message:

write(*,*),  'test'

The "," after the closing quote is not noticed by the compiler.
I've noticed some error like this in my codes after recompiling
with the intel fortran compiler.
Leandro.


-- 
           Summary: write(*,*), 'teste' does not give error
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: leandromartinez dot spam at gmail dot com


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


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

* [Bug fortran/35871] write(*,*), 'teste' does not give error
  2008-04-08 11:30 [Bug fortran/35871] New: write(*,*), 'teste' does not give error leandromartinez dot spam at gmail dot com
@ 2008-04-08 11:31 ` leandromartinez dot spam at gmail dot com
  2008-04-08 12:01 ` burnus at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: leandromartinez dot spam at gmail dot com @ 2008-04-08 11:31 UTC (permalink / raw)
  To: gcc-bugs



-- 

leandromartinez dot spam at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |trivial


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


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

* [Bug fortran/35871] write(*,*), 'teste' does not give error
  2008-04-08 11:30 [Bug fortran/35871] New: write(*,*), 'teste' does not give error leandromartinez dot spam at gmail dot com
  2008-04-08 11:31 ` [Bug fortran/35871] " leandromartinez dot spam at gmail dot com
@ 2008-04-08 12:01 ` burnus at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-04-08 12:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2008-04-08 12:00 -------
(In reply to comment #0)
> Not sure if it is a bug, at least is a situation in which 
> we would expect a error message:
> write(*,*),  'test'
> The "," after the closing quote is not noticed by the compiler.

If you care to write standard conforming code, you should instruct the compiler
that you want to do so. Using  -std=f95 or -std=f2003, gfortran prints the
following error message:

write(*,*),  'test'
          1
Error: Extension: Comma before i/o item list at (1)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


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


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

end of thread, other threads:[~2008-04-08 12:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-08 11:30 [Bug fortran/35871] New: write(*,*), 'teste' does not give error leandromartinez dot spam at gmail dot com
2008-04-08 11:31 ` [Bug fortran/35871] " leandromartinez dot spam at gmail dot com
2008-04-08 12:01 ` burnus at gcc dot gnu dot 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).