Bug 35871 - write(*,*), 'teste' does not give error
Summary: write(*,*), 'teste' does not give error
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.2.1
: P3 trivial
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 11:30 UTC by Leandro Martinez
Modified: 2008-04-08 12:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leandro Martinez 2008-04-08 11:30:07 UTC
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.
Comment 1 Tobias Burnus 2008-04-08 12:00:43 UTC
(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)